Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 196d863

Browse files
committedJul 23, 2023
🏷️ fix type def
Signed-off-by: w01fgang <sumin@unix-center.ru>
1 parent c51c388 commit 196d863

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "permission-gate",
3-
"version": "1.0.5",
3+
"version": "1.0.6",
44
"description": "A library for handling roles and permissions in large-scale React apps",
55
"main": "./lib/cjs/index.js",
66
"module": "./lib/esm/index.js",

‎src/index.js.flow

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ type ComponentName = string;
66
export type Rules = {|
77
rulesMap: { [key: ComponentName]: Array<RoleName>, ... },
88
role: RoleName,
9-
validator?: ({ role, rulesMap, name }: Rules & { name: string; }) => boolean,
9+
validator?: (params: Rules & { name: string; }) => boolean,
1010
|};
1111

1212
declare type ProviderProps = {|

0 commit comments

Comments
 (0)
Please sign in to comment.