The Storage interface which defines what must be implemented in order to create persistent storage for the Theme Builder.

interface Storage {
    delete(key: string): Promise<void>;
    get(key: string): Promise<StorageElement>;
    listKeys(): Promise<string[]>;
    listMetadata(): Promise<StorageElement[]>;
    set(key: string, value: StorageElement): Promise<void>;
}

Implemented by

Methods

  • Delete the value associated with a key

    Parameters

    • key: string

    Returns Promise<void>