Commit 952ae23d authored by René Jochum's avatar René Jochum

Add getNextId

parent eecab29e
......@@ -12,6 +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 addNode = <T>(obj: T, parentId = -1): AnyAction => ({
type: ADD_NODE,
id: nextId++,
......
......@@ -897,10 +897,10 @@
"@types/istanbul-reports" "^1.1.1"
"@types/yargs" "^13.0.0"
"@minadmin/redux-immutable-ts@^0.1.1":
version "0.1.1"
resolved "https://registry.yarnpkg.com/@minadmin/redux-immutable-ts/-/redux-immutable-ts-0.1.1.tgz#beab9fc81af05990bb53b41f3d33a54cc38bd70e"
integrity sha512-LsimR4dud7hAfIDBPxbH+14ggxvzQYNLK/kTO5b9PWVkEZgHRJs/5txWC7eV0cXJMNe5Zmanr3E5/2mYmYzXJw==
"@minadmin/redux-immutable-ts@^0.2.1":
version "0.2.1"
resolved "https://registry.yarnpkg.com/@minadmin/redux-immutable-ts/-/redux-immutable-ts-0.2.1.tgz#261e625e23640f022a9f3d5adebca14e110ac330"
integrity sha512-n6WD+qPHFkn2MQBGXXLlN4Skxnv7l104oUTPSY0h9s8hnFASMdoJlfTr37z1wNJARQ5ztDsNBSUE0wCrLWY32A==
dependencies:
"@babel/runtime" "^7.7.7"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment