Skip to content

Commit

Permalink
🏷️ fix flow type
Browse files Browse the repository at this point in the history
Signed-off-by: w01fgang <[email protected]>
  • Loading branch information
w01fgang committed Jul 23, 2023
1 parent 366a6b6 commit c51c388
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "permission-gate",
"version": "1.0.4",
"version": "1.0.5",
"description": "A library for handling roles and permissions in large-scale React apps",
"main": "./lib/cjs/index.js",
"module": "./lib/esm/index.js",
Expand Down
1 change: 1 addition & 0 deletions src/index.js.flow
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ type ComponentName = string;
export type Rules = {|
rulesMap: { [key: ComponentName]: Array<RoleName>, ... },
role: RoleName,
validator?: ({ role, rulesMap, name }: Rules & { name: string; }) => boolean,
|};

declare type ProviderProps = {|
Expand Down

0 comments on commit c51c388

Please sign in to comment.