@@ -46,12 +46,12 @@ export interface OrganizationMembershipResource extends ClerkResource {
46
46
}
47
47
48
48
export type OrganizationCustomPermissionKey = 'permission' extends keyof ClerkAuthorization
49
- ? // @ts -expect-error Typescript cannot infer the existence of the `permission` key even if we checking it above
49
+ ? // @ts -ignore Typescript cannot infer the existence of the `permission` key even if we checking it above
50
50
ClerkAuthorization [ 'permission' ]
51
51
: Base [ 'permission' ] ;
52
52
53
53
export type OrganizationCustomRoleKey = 'role' extends keyof ClerkAuthorization
54
- ? // @ts -expect-error Typescript cannot infer the existence of the `role` key even if we checking it above
54
+ ? // @ts -ignore Typescript cannot infer the existence of the `role` key even if we checking it above
55
55
ClerkAuthorization [ 'role' ]
56
56
: Base [ 'role' ] ;
57
57
@@ -62,7 +62,7 @@ export type OrganizationCustomRoleKey = 'role' extends keyof ClerkAuthorization
62
62
* these types will no longer match a developer's custom logic.
63
63
*/
64
64
export type MembershipRole = 'role' extends keyof ClerkAuthorization
65
- ? // @ts -expect-error Typescript cannot infer the existence of the `role` key even if we checking it above
65
+ ? // @ts -ignore Typescript cannot infer the existence of the `role` key even if we checking it above
66
66
// Disabling eslint rule because the error causes the type to become any when accessing a property that does not exist
67
67
// eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents
68
68
ClerkAuthorization [ 'role' ] | 'admin' | 'basic_member' | 'guest_member'
@@ -81,7 +81,7 @@ export type OrganizationSystemPermissionKey =
81
81
* System permissions are only accessible from FAPI and client-side operations/utils
82
82
*/
83
83
export type OrganizationPermissionKey = 'permission' extends keyof ClerkAuthorization
84
- ? // @ts -expect-error Typescript cannot infer the existence of the `permission` key even if we checking it above
84
+ ? // @ts -ignore Typescript cannot infer the existence of the `permission` key even if we checking it above
85
85
// Disabling eslint rule because the error causes the type to become any when accessing a property that does not exist
86
86
// eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents
87
87
ClerkAuthorization [ 'permission' ] | OrganizationSystemPermissionKey
0 commit comments