36 lines
938 B
TypeScript
36 lines
938 B
TypeScript
import Updux from '../index.js';
|
|
declare const _default: Updux<{
|
|
subduxes: {
|
|
todos: Updux<{
|
|
initialState: {
|
|
id: number;
|
|
description: string;
|
|
done: boolean;
|
|
}[];
|
|
actions: {
|
|
addTodoWithId: (description: any, id: any) => {
|
|
description: any;
|
|
id: any;
|
|
};
|
|
todoDone: (id: number) => number;
|
|
};
|
|
findSelectors: {
|
|
getTodoById: (state: any) => (id: any) => any;
|
|
};
|
|
}>;
|
|
nextId: Updux<{
|
|
initialState: number;
|
|
actions: {
|
|
incNextId: any;
|
|
};
|
|
selectors: {
|
|
getNextId: (state: any) => any;
|
|
};
|
|
}>;
|
|
};
|
|
actions: {
|
|
addTodo: (description: string) => string;
|
|
};
|
|
}>;
|
|
export default _default;
|