Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "create-context"

Index

Variables

Let g

g: any

Const key

key: "__global_context_unique_id__" = "__global_context_unique_id__"

Functions

createContext

  • createContext(defaultValue: any, calculateChangedBits?: undefined | function, name?: undefined | string): object
  • Parameters

    • defaultValue: any
    • Optional calculateChangedBits: undefined | function
    • Optional name: undefined | string

    Returns object

    • Consumer: Consumer
    • Provider: Provider
    • default: any

createEventEmitter

  • createEventEmitter(value: any): object
  • Parameters

    • value: any

    Returns object

    • get: function
      • get(): any
      • Returns any

    • off: function
      • off(handler: any): void
      • Parameters

        • handler: any

        Returns void

    • on: function
      • on(handler: any): void
      • Parameters

        • handler: any

        Returns void

    • set: function
      • set(newValue: any, changedBits: any): void
      • Parameters

        • newValue: any
        • changedBits: any

        Returns void

gud

  • gud(): any
  • Returns any

objectIs

  • objectIs(x: any, y: any): boolean
  • Parameters

    • x: any
    • y: any

    Returns boolean

Generated using TypeDoc