context-state
Advanced tools
Comparing version 3.1.0 to 3.1.1
@@ -17,3 +17,3 @@ import * as react from 'react'; | ||
type UseHookType<InitialValue, Value> = (initialValue: InitialValue) => Value; | ||
declare function createContainer<Value, InitialValue>(useHook: UseHookType<InitialValue, Value>, equalityFn?: EqualityFn<Partial<Value>>): { | ||
declare function createContainer<Value, InitialValue>(useHook: UseHookType<InitialValue, Value>, equalityFn?: EqualityFn): { | ||
Provider: ({ value, children }: { | ||
@@ -26,6 +26,6 @@ value?: InitialValue; | ||
}) => ReactNode; | ||
useSelector: <Selected extends Value>(selector: SelectorFn<Value, Selected>, equalityFn?: EqualityFn<Partial<Value>>) => Selected; | ||
usePicker: <Selected extends keyof Value>(selected: Selected[], equalityFn?: EqualityFn<Partial<Value>>) => Pick<Value, Selected>; | ||
useSelector: <Selected>(selector: SelectorFn<Value, Selected>, equalityFn?: EqualityFn<Selected>) => Selected; | ||
usePicker: <Selected extends keyof Value>(selected: Selected[], equalityFn?: EqualityFn<Pick<Value, Selected>>) => Pick<Value, Selected>; | ||
}; | ||
export { type ContextInnerValue, type ContextValue, type SelectorFn, createContainer }; |
{ | ||
"name": "context-state", | ||
"version": "3.1.0", | ||
"version": "3.1.1", | ||
"description": "React state management library", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
82724