Skip to content

Commit

Permalink
fix: improperly typed access control
Browse files Browse the repository at this point in the history
  • Loading branch information
jmikrut committed Apr 24, 2022
1 parent d5f4c03 commit b99ec06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export type AccessResult = boolean | Where;
/**
* Access function
*/
export type Access = (args?: any) => AccessResult;
export type Access = (args?: any) => AccessResult | Promise<AccessResult>;

export type AdminView = React.ComponentType<{ user: User, canAccessAdmin: boolean }>

Expand Down

0 comments on commit b99ec06

Please sign in to comment.