react-hookstore
Advanced tools
Comparing version 1.5.0 to 1.5.1
{ | ||
"name": "react-hookstore", | ||
"version": "1.5.0", | ||
"version": "1.5.1", | ||
"description": "A state management library for react using the bleeding edge hooks feature", | ||
@@ -5,0 +5,0 @@ "main": "dist/react-hookstore.js", |
declare module 'react-hookstore' { | ||
type NonUndefined<T> = T extends undefined ? never : T; | ||
type StateCallback<TState> = (state: TState) => void; | ||
@@ -35,7 +37,7 @@ | ||
export function createStore<TState, TPayload = any>(name: string, state: TState, reducer: ReducerType<TState, TPayload>): ReducerStoreInterface<TState, TPayload>; | ||
export function createStore<TState, TPayload = any>(name: string, state: NonUndefined<TState>, reducer: ReducerType<TState, TPayload>): ReducerStoreInterface<TState, TPayload>; | ||
export function createStore<TState>(name: string, state: TState): StateStoreInterface<TState>; | ||
export function createStore<TState>(name: string, state: NonUndefined<TState>): StateStoreInterface<TState>; | ||
export function createStore<TState>(name: string, state: TState, reducer: ReducerType<TState>): ReducerStoreInterface<TState>; | ||
export function createStore<TState>(name: string, state: NonUndefined<TState>, reducer: ReducerType<TState>): ReducerStoreInterface<TState>; | ||
@@ -42,0 +44,0 @@ export function getStoreByName<TState, TPayload = any>(name: string): StateStoreInterface<TState> | ReducerStoreInterface<TState>; |
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
58630
732