memoryStoragePart Function
Creates an instance of MemoryStoragePart, allowing interaction with a specific key-value pair stored in the memory storage
@template T = string | undefined
The type of data stored under the specific key. Defaults to string | undefined
@param key: string
The key that is used to access the value in the memory storage
@returns MemoryStoragePart<T>
API
function memoryStoragePart<T = string | undefined>(key: string): MemoryStoragePart<T>;
Example
import {memoryStoragePart} from '@bitfiber/rx';
const msPart = memoryStoragePart('key');
Last updated on