File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change 1+ import type { Setter , Signal } from "solid-js" ;
12import { createUniqueId , untrack } from "solid-js" ;
3+ import type { SetStoreFunction , Store } from "solid-js/store" ;
24import { reconcile } from "solid-js/store" ;
3- import type { Accessor , Setter , Signal } from "solid-js" ;
4- import type { Store , SetStoreFunction } from "solid-js/store" ;
5- import type { StorageWithOptions , AsyncStorage , AsyncStorageWithOptions } from "./types.js" ;
5+ import type { AsyncStorage , AsyncStorageWithOptions , StorageWithOptions } from "./types.js" ;
66
77export type PersistenceBaseOptions < T > = {
88 name ?: string ;
99 serialize ?: ( data : T ) => string ;
1010 deserialize ?: ( data : string ) => T ;
1111}
1212
13- export type PersistenceOptions < T , O extends Record < string , any > = { } > = PersistenceBaseOptions < T > & (
14- {
15- storage ?: Storage | AsyncStorage ;
16- } |
13+ export type PersistenceOptions < T , O extends Record < string , any > > =
14+ PersistenceBaseOptions < T > & (
1715 {
1816 storage : StorageWithOptions < O > | AsyncStorageWithOptions < O > ;
1917 storageOptions : O ;
20- } ) ;
18+ } |
19+ { storage ?: Storage | AsyncStorage ; } )
2120
2221/**
2322 * Persists a signal, store or similar API
You can’t perform that action at this time.
0 commit comments