@yakocloud/state-vocab 2.3.1 → 2.3.3
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.
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { Vocab } from "./context";
|
|
2
2
|
import type { ValueOrTransformer, Transformer, ValueOrFactory } from "./state.types";
|
|
3
3
|
export declare const embed: <D>(statePath: string, value: D) => (vocab: Vocab<D>) => {
|
|
4
|
-
[x: string]: D;
|
|
4
|
+
[x: string]: D | null;
|
|
5
5
|
};
|
|
6
6
|
export declare const genStoredValue: <V>(options: {
|
|
7
7
|
serialized: string | null;
|
|
8
8
|
deserialize: (v: string) => V;
|
|
9
|
-
}) => V;
|
|
9
|
+
}) => V | null;
|
|
10
10
|
export declare const isTransformer: <V>(v: ValueOrTransformer<V>) => v is Transformer<V>;
|
|
11
11
|
export declare const isValueDefined: <V>(v: V | undefined) => v is V;
|
|
12
12
|
export declare const valueOrFactory: <V>(input: ValueOrFactory<V>) => V;
|