mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-15 17:43:08 -04:00
Ban ts-pattern normal import
This commit is contained in:
parent
27e81b20db
commit
accfc15125
2 changed files with 3 additions and 1 deletions
|
@ -73,7 +73,8 @@ function MenuItem(guildId: string, id?: string, type?: MenuItemParentType) {
|
|||
action={() => {
|
||||
const guild = GuildStore.getGuild(guildId);
|
||||
|
||||
const { permissions, header }: { permissions: RoleOrUserPermission[], header: string; } = match(type)
|
||||
const { permissions, header } = match(type)
|
||||
.returnType<{ permissions: RoleOrUserPermission[], header: string; }>()
|
||||
.with(MenuItemParentType.User, () => {
|
||||
const member = GuildMemberStore.getMember(guildId, id!);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue