bobflux
Version:
Bobflux is pure functional implementation of FLUX architecture.
34 lines (29 loc) • 787 B
text/typescript
import * as b from 'bobril';
import { IState, bootstrap as funBootstrap, IBootstrapParams } from 'fun-model';
export {
IBootstrapParams,
ICursor,
ICursorFactory,
IState,
IActionHandler,
IParamLessActionHandler,
getState,
setState,
rootCursor,
shallowCopy,
IAction,
IParamLessAction,
createAction,
createActions,
createParamLessAction,
createParamLessActions,
createReplaceAction,
debugCallbackType
} from 'fun-model';
export * from './src/component';
export * from './src/routeComponent';
export * from './src/dataComponent';
export const bootstrap = (defaultState: IState, params: IBootstrapParams = {}) => {
funBootstrap(defaultState, () => b.invalidate(), params);
};
export const defaultStateName = "";