Skip to content

Commit

Permalink
chore:specific union type for permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
peterphanouvong committed Nov 12, 2024
1 parent caaea25 commit a29e63c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ export type KindeState = {
isAuthenticated: boolean | null;
isLoading: boolean | null;
organization: KindeOrganization;
permissions: KindePermissions | [];
permissions: KindePermissions | {permissions: []; orgCode: null};
user: {
id: string;
email: string | null;
Expand Down Expand Up @@ -337,7 +337,7 @@ export type KindeState = {
getPermission: (
key: string
) => {isGranted: boolean; orgCode: string | null} | null;
getPermissions: () => KindePermissions | [];
getPermissions: () => KindePermissions | {permissions: []; orgCode: null};
getStringFlag: (
code: string,
defaultValue: string
Expand Down

0 comments on commit a29e63c

Please sign in to comment.