Class Collection<T>

Type Parameters

  • T

Hierarchy

  • Collection

Constructors

Properties

Methods

Constructors

  • new Collection<T>(storage: string, proto?: T): Collection<T>
  • Type Parameters

    • T

    Parameters

    • storage: string
    • Optional proto: T

    Returns Collection<T>

Properties

collection: Map<string, Mapping<T>> = ...
proto?: T
storage: string

Methods

  • data(id: string): T
  • Parameters

    • id: string

    Returns T

  • delete(id: string): boolean
  • Parameters

    • id: string

    Returns boolean

  • Parameters

    • id: string

    Returns Mapping<T>

Generated using TypeDoc