rumious 2.1.3 → 2.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +5 -0
- package/dist/state/state.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -313,6 +313,11 @@ class RumiousState {
|
|
313
313
|
state: this
|
314
314
|
});
|
315
315
|
}
|
316
|
+
entries() {
|
317
|
+
if (this.value && typeof this.value === "object")
|
318
|
+
return Object.entries(this.value);
|
319
|
+
return [];
|
320
|
+
}
|
316
321
|
}
|
317
322
|
function createState(value) {
|
318
323
|
return new RumiousState(value);
|
package/dist/state/state.d.ts
CHANGED
@@ -11,6 +11,7 @@ export declare class RumiousState<T> {
|
|
11
11
|
toJSON(): string;
|
12
12
|
equal(value: T): boolean;
|
13
13
|
trigger(): void;
|
14
|
+
entries(): [any, any][];
|
14
15
|
}
|
15
16
|
export declare function createState<T>(value: T): RumiousState<T>;
|
16
17
|
type StateBindFor<M> = RumiousStateBind<RumiousState<M>>;
|