@novasamatech/storage-adapter 0.5.0-9 → 0.5.0
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/fieldView.d.ts +1 -1
- package/dist/fieldView.js +1 -1
- package/package.json +1 -1
package/dist/fieldView.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ export declare function fieldView<T>({ storage, initial, key, from, to, autosync
|
|
|
14
14
|
clear(): ResultAsync<void, Error>;
|
|
15
15
|
subscribe(fn: (value: T) => void): VoidFunction;
|
|
16
16
|
};
|
|
17
|
-
export declare function fieldListView<T>(params: Params<T[]>): {
|
|
17
|
+
export declare function fieldListView<T>(params: Omit<Params<T[]>, 'initial'>): {
|
|
18
18
|
add(value: T): ResultAsync<T, Error>;
|
|
19
19
|
filter(fn: (value: T) => boolean): ResultAsync<T[], Error>;
|
|
20
20
|
mutate(fn: (value: T[]) => T[]): ResultAsync<T[], Error>;
|
package/dist/fieldView.js
CHANGED
|
@@ -28,7 +28,7 @@ export function fieldView({ storage, initial, key, from, to, autosync = true })
|
|
|
28
28
|
return enhancedStorage;
|
|
29
29
|
}
|
|
30
30
|
export function fieldListView(params) {
|
|
31
|
-
const view = fieldView(params);
|
|
31
|
+
const view = fieldView({ ...params, initial: [] });
|
|
32
32
|
const listView = {
|
|
33
33
|
...view,
|
|
34
34
|
add(value) {
|