Comparing version 4.2.0 to 4.2.1
@@ -10,4 +10,5 @@ import * as s from './src/store'; | ||
withStateFreezing?: boolean | (() => boolean); | ||
withExceptionHandling?: boolean | (() => boolean); | ||
subStateSeparator?: string; | ||
} | ||
export declare const bootstrap: (defaultState: s.IState, onStateChanged: () => void, params: IBootstrapParams) => void; |
{ | ||
"name": "fun-model", | ||
"version": "4.2.0", | ||
"version": "4.2.1", | ||
"description": "fun-model is pure functional implementation of FLUX architecture.", | ||
@@ -5,0 +5,0 @@ "main": "./index.js", |
import * as s from './store'; | ||
export declare let bootstrap: (renderCallback: (() => void) | null) => void; | ||
export declare const bootstrap: (onStateChanged: (() => void) | null, withExceptionHandling?: boolean | (() => boolean)) => void; | ||
export interface IAction<T> { | ||
@@ -7,3 +7,3 @@ (param?: T): void; | ||
export declare type IActionHandler<TState extends s.IState, TParams> = (state: TState, t?: TParams) => TState; | ||
export declare const createAction: <TState extends s.IState, TParams>(cursor: s.ICursor<TState> | s.ICursorFactory<TState, TParams>, handler: (state: TState, t?: TParams | undefined) => TState) => IAction<TParams>; | ||
export declare const createAction: <TState extends s.IState, TParams>(cursor: s.ICursor<TState> | s.ICursorFactory<TState, TParams>, handler?: (state: TState, t?: TParams | undefined) => TState) => IAction<TParams>; | ||
export interface IPair<TState extends s.IState, TParam> { | ||
@@ -10,0 +10,0 @@ cursor: s.ICursor<TState>; |
228964
1555