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>

Defined in

packages/utils/src/CreateMemoryDbFn.ts:4