File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
22 "name" : " permission-gate" ,
3- "version" : " 1.0.6 " ,
3+ "version" : " 1.0.7 " ,
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" ,
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import React, {
77 isValidElement ,
88 Context ,
99 Ref ,
10- ReactChild ,
10+ ReactNode ,
1111 ReactElement ,
1212} from "react" ;
1313
@@ -23,11 +23,11 @@ const RoleContext: Context<Rules> = createContext({
2323} ) ;
2424
2525type ProviderProps = {
26- children : ReactChild ,
26+ children : ReactNode ,
2727} & Rules ;
2828
2929type ConsumerProps = {
30- children : ReactChild ,
30+ children : ReactNode ,
3131 name : string ,
3232} ;
3333
Original file line number Diff line number Diff line change 1414 "noImplicitThis" : true ,
1515 "noImplicitAny" : true ,
1616 "strictNullChecks" : true ,
17- "suppressImplicitAnyIndexErrors" : true ,
1817 "allowSyntheticDefaultImports" : true
1918 },
2019 "include" : [" src" ],
You can’t perform that action at this time.
0 commit comments