File

src/metadata.ts

Index

Properties

Properties

domain
domain: string
Type : string
expires
expires: Date | string
Type : Date | string
maxAge
maxAge: number
Type : number
path
path: string
Type : string
secure
secure: boolean
Type : boolean
import {Driver} from './Driver'
import {DRIVERS} from './DriverTypes'

export interface IStorageSetConfig {
  secure?: boolean
  maxAge?: number
  domain?: string
  path?: string
  expires?: Date | string
}

export interface IStorage {
  length: number

  getItem(key: string): any
  setItem(key: string, data: any, config?: IStorageSetConfig): void
  removeItem(key: string): void
  clear(): void
  key(index: number): string
}

export interface IWebStorage extends IStorage {
  hasOwnProperty(key: string): boolean
}

export interface ICustomStorage extends IStorage {
  hasItem(key: string): boolean
}

export interface ILockerConfig {
  driverNamespace?: string
  driverFallback?: DRIVERS | DRIVERS[]
  namespaceSeparator?: string
}

export interface IExpiryData {
  config?: IStorageSetConfig
  data: any
}

export interface IDriverType {
  storage: Driver
  type: string
}

results matching ""

    No results matching ""