Interface DrawingDocumentStore

Where the documents live, one per instrument key. The host's choice: memoryDrawingStore (the default), webStorageDrawingStore over a web storage the host hands it, or its own. Synchronous; a throw from any method, or set returning false, is a failure the helper reports.

interface DrawingDocumentStore {
    get(key: string): unknown;
    remove(key: string): void;
    set(key: string, document: DrawingsDocument): boolean | void;
}

Methods

Methods

  • The document stored under key, or null (or undefined) when there is none.

    Parameters

    • key: string

    Returns unknown