@wharfkit/mock-data - v4.0.2
    Preparing search index...

    Class MockStorage

    Implements

    • SessionStorage
    Index
    data: Record<string, string> = {}
    • Read key from storage. Should return null if key can not be found.

      Parameters

      • key: string

      Returns Promise<string | null>

    • Delete key from storage. Should not error if deleting non-existing key.

      Parameters

      • key: string

      Returns Promise<void>

    • Write string to storage at key. Should overwrite existing values without error.

      Parameters

      • key: string
      • data: string

      Returns Promise<void>