Skip to content

CreateMemoryDbFn

CreateMemoryDbFn<TKey, TValue>: (initialDb?) => MemoryDb<TKey, TValue>

Type parameters

TKey extends string | number | Uint8Array = Uint8Array

TValue extends string | Uint8Array | Uint8Array | string | DbObject = Uint8Array

Parameters

initialDb?: Map<TKey, TValue>

Returns

MemoryDb<TKey, TValue>

Source

packages/utils/src/CreateMemoryDbFn.ts:4