Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface UnderlyingStorage

A subset of the Storage interface which we need for the backends to work.

Essentially removes the indexable properties and readonly properties from Storage in lib.dom.d.ts. This is so that a custom type can extend it for testing.

Hierarchy

  • UnderlyingStorage

Index

Properties

Methods

Properties

Readonly length

length: number

Methods

clear

  • clear(): void

getItem

  • getItem(key: string): null | string
  • Parameters

    • key: string

    Returns null | string

removeItem

  • removeItem(key: string): void

setItem

  • setItem(key: string, data: string): void
  • Parameters

    • key: string
    • data: string

    Returns void

Generated using TypeDoc