deep-storage
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -44,2 +44,6 @@ export declare type StateUpdateCallback = <DeepState>(path: Path, newState: DeepState, oldState: DeepState) => void; | ||
root: () => DeepStorage<RootState>; | ||
/** | ||
* The path from the root to this storage | ||
*/ | ||
path: Path; | ||
} | ||
@@ -74,2 +78,3 @@ /** | ||
root: () => this; | ||
path: Path; | ||
} | ||
@@ -76,0 +81,0 @@ export declare class NestedDeepStorage<State, RootState> implements DeepStorage<State, RootState> { |
@@ -165,2 +165,3 @@ "use strict"; | ||
this.root = function () { return _this; }; | ||
this.path = []; | ||
} | ||
@@ -167,0 +168,0 @@ return DefaultDeepStorage; |
{ | ||
"name": "deep-storage", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "Simple observable state management for reactive applications", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
@@ -55,2 +55,6 @@ export type StateUpdateCallback = <DeepState>(path: Path, newState: DeepState, oldState: DeepState) => void; | ||
/** | ||
* The path from the root to this storage | ||
*/ | ||
path: Path | ||
} | ||
@@ -168,2 +172,3 @@ | ||
root = () => this; | ||
path: Path = []; | ||
} | ||
@@ -170,0 +175,0 @@ |
Sorry, the diff of this file is not supported yet
177820
996