updux/src/Updux.d.ts

19 lines
516 B
TypeScript
Raw Normal View History

2021-10-12 18:49:08 +00:00
type UpduxConfig<TState> = Partial<{
initial: TState;
2021-10-18 13:02:20 +00:00
subduxes: Record<string, any>;
2021-10-12 18:49:08 +00:00
actions: Record<string, any>;
selectors: Record<string, Function>;
mutations: Record<string, Function>;
2021-10-18 13:02:20 +00:00
mappedSelectors: Record<string, Function>;
effects: Record<string, Function>;
reactions: Record<string, Function>;
2021-10-12 18:49:08 +00:00
mappedReaction: Function;
2021-10-18 13:02:20 +00:00
}>;
2021-10-12 18:49:08 +00:00
2021-10-18 13:02:20 +00:00
export class Updux<TState = unknown> {
constructor(config: UpduxConfig<TState>);
2021-10-12 18:49:08 +00:00
get initial(): TState;
get selectors(): unknown;
}