@ariesclark/state
Advanced tools
Comparing version 0.0.4 to 0.1.0
@@ -22,2 +22,6 @@ import { Keys, OmitByType } from "@ariesclark/utils/dist/objects"; | ||
path: K; | ||
/** | ||
* The current state. | ||
*/ | ||
state: T; | ||
} | ||
@@ -24,0 +28,0 @@ /** |
@@ -38,6 +38,8 @@ "use strict"; | ||
var _a, _b; | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
const context = utils_1.objects.create({ | ||
path, | ||
previousValue: values[path], | ||
value | ||
value, | ||
state: store | ||
}); | ||
@@ -44,0 +46,0 @@ values[path] = value; |
{ | ||
"name": "@ariesclark/state", | ||
"version": "0.0.4", | ||
"version": "0.1.0", | ||
"description": "A cool state container", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
11681
253