Skip to main content

foundation-comms.getkvstorage

Home > @genesislcap/foundation-comms > getKVStorage

getKVStorage() function​

Gets KVStorage from the DI container.

Signature:

export declare function getKVStorage(): KVStorage;

Returns:

KVStorage

Remarks​

A utility method for host applications that are not using decorators or the DI container.

Example​

import { getKVStorage } from '@genesislcap/foundation-comms';
...
private kvStorage = getKVStorage();