...
 
Commits (2)
{
"name": "@minadmin/redux-tree-reducer",
"version": "0.0.3-dev0",
"version": "0.0.3",
"description": "Tree reducer for redux",
"author": "pcdummy",
"license": "MIT",
......
......@@ -12,7 +12,7 @@ export const INSERT_AFTER = 1;
export let nextId: number = 0;
export const setNextId = (newNextId: number) => (nextId = newNextId);
export const getNextId = (): number => ( nextId )
export const getNextId = (): number => nextId;
export const addNode = <T>(obj: T, parentId = -1): AnyAction => ({
type: ADD_NODE,
id: nextId++,
......