Skip to content

@yantrix/storage v0.6.0 • Docs


Yantrix API / @yantrix/storage / TLocalStorageAdapterProps

Type Alias: TLocalStorageAdapterProps<SnapshotType> ​

ts
type TLocalStorageAdapterProps<SnapshotType>: TStorageAdapterProps & object;

Type declaration ​

deserialize()? ​

ts
optional deserialize: (value) => SnapshotType;

Parameters ​

• value: string

Returns ​

SnapshotType

key? ​

ts
optional key: string;

serialize()? ​

ts
optional serialize: (snapshot) => string;

Parameters ​

• snapshot: SnapshotType

Returns ​

string

storage? ​

ts
optional storage: IKeyValueStorage;

Type Parameters ​

• SnapshotType

See ​

LocalStorageAdapter