Skip to content

Commit

Permalink
🏷️ fix type def
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 c51c388 commit 196d863
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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.5",
"version": "1.0.6",
"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
2 changes: 1 addition & 1 deletion src/index.js.flow
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ type ComponentName = string;
export type Rules = {|
rulesMap: { [key: ComponentName]: Array<RoleName>, ... },
role: RoleName,
validator?: ({ role, rulesMap, name }: Rules & { name: string; }) => boolean,
validator?: (params: Rules & { name: string; }) => boolean,
|};

declare type ProviderProps = {|
Expand Down

0 comments on commit 196d863

Please sign in to comment.