Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Dictionary<T>

Type parameters

  • T

Hierarchy

  • Dictionary

Index

Constructors

Properties

Methods

Constructors

constructor

  • new Dictionary(key: string, data: Record<keyof T, string>): Dictionary

Properties

Private _data

_data: Record<keyof T, string>

Private _key

_key: string

Static DEFAULT

DEFAULT: string = "default"

Methods

getKey

  • getKey(): string

getValue

  • getValue<K>(key: K): string
  • Gets the value of the key in dictionary.

    Type parameters

    • K: keyof T

    Parameters

    • key: K

    Returns string

hasValue

  • hasValue<K>(key: K): boolean
  • Checks if the value is in the dictionary.

    Type parameters

    • K: keyof T

    Parameters

    • key: K

    Returns boolean

isDefault

  • isDefault(): boolean
  • Checks if the dictionary is default.

    Returns boolean

Generated using TypeDoc