Comparing version 1.3.0 to 1.3.1
{ | ||
"name": "fun-model", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "fun-model is pure functional implementation of FLUX architecture.", | ||
@@ -5,0 +5,0 @@ "main": "./index.js", |
@@ -6,2 +6,5 @@ import * as s from './store'; | ||
} | ||
export interface IAsyncAction<T, TState> { | ||
(param?: T): Promise<TState>; | ||
} | ||
export declare let createAction: <TState extends s.IState, TParams>(cursor: s.ICursor<TState> | s.ICursorFactory<TState, TParams>, handler: (state: TState, t?: TParams) => TState) => IAction<TParams>; | ||
@@ -13,1 +16,2 @@ export interface IPair<TState extends s.IState, TParam> { | ||
export declare let createActions: <TState extends s.IState, TParams>(...pairs: IPair<TState, TParams>[]) => IAction<TParams>; | ||
export declare let createAsyncAction: <TState extends s.IState, TParams>(cursor: s.ICursor<TState> | s.ICursorFactory<TState, TParams>, handler: (state: TState, t?: TParams) => TState) => IAsyncAction<TParams, 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
197130
26
905