easy-react-state
Advanced tools
Comparing version 1.0.8 to 1.0.9
@@ -12,9 +12,10 @@ export interface Options { | ||
} | ||
interface Listener { | ||
export interface Listener { | ||
(): void; | ||
} | ||
export declare type ListenersMap = Map<Listener, Listener>; | ||
export interface Setter { | ||
(...args: any[]): any; | ||
} | ||
interface Setters { | ||
export interface Setters { | ||
[x: string]: Setter; | ||
@@ -34,3 +35,3 @@ } | ||
} | ||
interface Selector<S> { | ||
export interface Selector<S> { | ||
<T>(selector: (state: S) => T, equalityFn?: (prevSelectedState: T, nextSelectedState: T) => boolean): T; | ||
@@ -44,3 +45,3 @@ } | ||
}; | ||
declare type TransformReturnTypeOfEverySetterToVoid<T extends Setters> = { | ||
export declare type TransformReturnTypeOfEverySetterToVoid<T extends Setters> = { | ||
[K in keyof T]: (...args: Parameters<T[K]>) => void; | ||
@@ -47,0 +48,0 @@ }; |
{ | ||
"name": "easy-react-state", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"description": "Fun to use state management library for your awesome React app", | ||
@@ -5,0 +5,0 @@ "author": "ombori", |
@@ -208,5 +208,1 @@ # easy-react-state | ||
MIT © [ombori](https://github.com/ombori) | ||
``` | ||
``` |
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
246874
2312
208