Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BaseManager<T, TCtor>

Type parameters

  • T: Base

  • TCtor: function

Hierarchy

Constructors

Properties

Methods

Constructors

constructor

  • Type parameters

    • T: Base<T>

    • TCtor: function

    Parameters

    Returns BaseManager<T, TCtor>

Properties

Readonly cache

cache: Collection<string, T>

Readonly client

client: Client

Readonly holds

holds: TCtor

Methods

_remove

  • _remove(data: T): boolean
  • Parameters

    • data: T

    Returns boolean

_upsert

  • _upsert(data: T): T
  • Parameters

    • data: T

    Returns T

Abstract fetch

  • fetch(id: string): Promise<T>
  • Parameters

    • id: string

    Returns Promise<T>

resolve

  • resolve(data: unknown): null | T
  • Parameters

    • data: unknown

    Returns null | T

resolveId

  • resolveId(data: unknown): null | string
  • Parameters

    • data: unknown

    Returns null | string

Generated using TypeDoc