Implements

Implemented by

Constructors

Properties

awaitPromise: AwaitPromiseInfo[]

a list of promises to resolve in an 'async' scope as 'async function'

forAwaitAsyncIterable?: AsyncIterableInfo

resolve await promise in 'await for in' scope

moduleScope?: ModuleScope
moduleSource?: string
onDestroyActions: () => void[] = []
stack: Scope<any>[]

Methods

  • declare variable at last scope in the stack,

    Parameters

    • propertyKey: PropertyKey

      the name of property mey be string | number | symbol,

    • OptionalpropertyValue: any

      if not exist will be initialize with 'undefined' value

    Returns any

  • declare variable at last scope in the stack,

    Parameters

    • propertyKey: PropertyKey

      the name of property mey be string | number | symbol,

    • OptionalpropertyValue: any

      if not exist will be initialize with 'undefined' value

    Returns boolean

  • get context object of this provider, search for the first context object that has propertyKey.

    search for the first context that have property key, if not found will return the stack local scop as a default value

    Type Parameters

    Parameters

    • propertyKey: PropertyKey

      the property key

    Returns Scope<T>

  • get context object of this provider, search for the first context object that has propertyKey.

    search for the first context that have property key, if not found will return the stack local scop as a default value

    Type Parameters

    Parameters

    • propertyKey: PropertyKey

      the property key

    Returns Scope<T>

  • get the first value for provided property key,

    will search current stack in all scope till find the first key, else undefined

    Parameters

    • propertyKey: PropertyKey

    Returns any

  • get the first value for provided property key,

    will search current stack in all scope till find the first key, else undefined

    Parameters

    • propertyKey: PropertyKey

    Returns any

  • set the value of propertyKey in its context provider with value. else define it in the first scope 'local scope'

    Parameters

    • propertyKey: PropertyKey
    • value: any
    • Optionalreceiver: any

    Returns boolean

  • set the value of propertyKey in its context provider with value. else define it in the first scope 'local scope'

    Parameters

    • propertyKey: PropertyKey
    • value: any
    • Optionalreceiver: any

    Returns boolean