Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Stringmap

Hierarchy

  • Stringmap

Index

Constructors

constructor

  • Returns Stringmap

Properties

Private _stringArray

_stringArray: string[] = []

Private _triggerUntilTrueFunctionArray

_triggerUntilTrueFunctionArray: TTriggerFunction[] = []

Methods

addString

  • addString(stringArg: string): void
  • add a string to the Stringmap

    Parameters

    • stringArg: string

    Returns void

addStringArray

  • addStringArray(stringArrayArg: string[]): void
  • like addString, but accepts an array of strings

    Parameters

    • stringArrayArg: string[]

    Returns void

checkIsEmpty

  • checkIsEmpty(): boolean
  • checks if the Stringmap is empty

    Returns boolean

checkMinimatch

  • checkMinimatch(miniMatchStringArg: string): boolean
  • checks stringPresence with minimatch

    Parameters

    • miniMatchStringArg: string

    Returns boolean

checkString

  • checkString(stringArg: string): boolean
  • check if string is in Stringmap

    Parameters

    • stringArg: string

    Returns boolean

getStringArray

  • getStringArray(): string[]
  • gets a cloned copy of the current string Array

    Returns string[]

Private notifyTrigger

  • notifyTrigger(): void
  • notifies triggers

    Returns void

registerUntilTrue

  • registerUntilTrue(functionArg: TTriggerFunction, callbackArg?: () => any): Promise<unknown>
  • register a new trigger

    Parameters

    • functionArg: TTriggerFunction
    • Optional callbackArg: () => any
        • (): any
        • Returns any

    Returns Promise<unknown>

removeString

  • removeString(stringArg: string): void
  • removes a string from Stringmap

    Parameters

    • stringArg: string

    Returns void

wipe

  • wipe(): void
  • wipes the Stringmap

    Returns void

Generated using TypeDoc