Skip to content

Type Alias: StorageOptions<Key, Value, CacheDisabled>

StorageOptions<Key, Value, CacheDisabled> = object & Pick<Partial<IDataStorage<Key, Value, CacheDisabled>>, "cacheDisabled" | "onChange" | "onError" | "parse" | "spaces" | "storage" | "stringify"> & CacheDisabled extends false ? Pick<Partial<IDataStorage<Key, Value, CacheDisabled>>, "delay" | "delayOptions"> : object

Defined in: packages/rx/src/data-storage/types.ts:61

Initial options provided through the constructor

Type Declaration

initialValue?

optional initialValue: Map<Key, Value>

value to set, only if storage is empty. Default: new Map()

Type Parameters

Key

Key extends StorageKey

Value

Value extends StorageValue

CacheDisabled

CacheDisabled extends boolean = false