UNPKG

@johngw/stream

Version:

Reactive programming tools using the WHATWG Streams API.

16 lines (15 loc) 404 B
import { Clearable } from '@johngw/stream/types/Clearable'; /** * An in-memory storage class. * * @group Storages */ export declare class MemoryStorage implements Storage, Clearable { #private; get length(): number; clear(): void; getItem(key: string): string | null; key(index: number): string; removeItem(key: string): void; setItem(key: string, value: string): void; }