export reset id function
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import snapshot, { serializeNodeWithId } from './snapshot';
|
||||
import snapshot, { serializeNodeWithId, resetId } from './snapshot';
|
||||
import rebuild from './rebuild';
|
||||
export * from './types';
|
||||
|
||||
export { snapshot, serializeNodeWithId, rebuild };
|
||||
export { snapshot, serializeNodeWithId, resetId, rebuild };
|
||||
|
||||
@@ -13,7 +13,7 @@ function genId(): number {
|
||||
return _id++;
|
||||
}
|
||||
|
||||
function resetId() {
|
||||
export function resetId() {
|
||||
_id = 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user