Type Alias PersistConstructor<T>
PersistConstructor: CellConstructor<T> & { key: string; storage: Storage; deserialize(value: string): null | T; serialize(value: T): string;} Type declaration
key: string
storage: Storage
deserialize?:function
- deserialize(value: string): null | T
Returns null | T
serialize?:function
- serialize(value: T): string
Returns string
The key to use in the storage