Expand description
interface PersistConstructor<T> {
initial: T;
key: string;
storage: PersistStorage;
deserialize?(value: string): T | null;
serialize?(value: T): string;
}Properties§
§§§
initial: TInitial value
key: stringThe key to use in the storage
storage: PersistStorageThe web storage to use
Args for creating a persisted cell