Options
All
  • Public
  • Public/Protected
  • All
Menu

Class State<T>

Type Parameters

  • T

Hierarchy

  • State

Index

Constructors

  • new State<T>(value: any): State<T>

Properties

#private: any
addMutationListerner: ((referenceElement: HTMLElement, callback: ((value: T) => void)) => string)

Type declaration

    • (referenceElement: HTMLElement, callback: ((value: T) => void)): string
    • Parameters

      • referenceElement: HTMLElement
      • callback: ((value: T) => void)
          • (value: T): void
          • Parameters

            • value: T

            Returns void

      Returns string

removeMutationListener: ((mutationListerId: string) => boolean)

Type declaration

    • (mutationListerId: string): boolean
    • Parameters

      • mutationListerId: string

      Returns boolean

Accessors

  • get mutator(): (this | ((value: any) => T))[]
  • get value(): T

Generated using TypeDoc