Type Parameters

Hierarchy (View Summary)

Constructors

  • Type Parameters

    Parameters

    • context: T
    • OptionalpropertyKeys: (keyof T)[]
    • Optional_name: PropertyKey
    • Optional_parent: ReactiveScope<any>

    Returns ReactiveScope<T>

Properties

_clone: T
_ctx: T
_inners: Map<keyof T, ReactiveScope<any>>
_keys?: (keyof T)[]
_name?: PropertyKey
_parent?: ReactiveScope<any>

Methods

  • delete property from context

    Parameters

    • propertyKey: keyof T

    Returns boolean

  • Returns void

  • Parameters

    • propertyKey: keyof T
    • newValue: any
    • OptionaloldValue: any

    Returns void

  • get value of propertyKey in current context

    Parameters

    • propertyKey: keyof T

    Returns any

  • get current context object of this scope

    Returns T

  • get a proxy of the current context object if exists.

    Returns T

  • get a scope for an object named as propertyKey from cache map,

    if the current value is not type od object, will return undefined.

    Type Parameters

    Parameters

    • propertyKey: keyof T

      the name of the property

    Returns undefined | S

  • Type Parameters

    • V extends Record<PropertyKey, any>

    Parameters

    • ...objs: V[]

    Returns (keyof V)[]

  • is current context has propertyKey in hash map keys

    Parameters

    • propertyKey: keyof T

    Returns boolean

  • set the value of propertyKey in current context, could be instilled with value.

    Parameters

    • propertyKey: keyof T
    • newValue: any
    • Optionalreceiver: any

    Returns boolean

  • create a scope with the same type of this scope

    Type Parameters

    Parameters

    • propertyKey: keyof T

    Returns S

  • sc

    Type Parameters

    Parameters

    • propertyKey: keyof T
    • Optionalscope: S

    Returns S

  • Parameters

    Returns void

  • Type Parameters

    Parameters

    • OptionalpropertyKeys: (keyof T)[]

    Returns ReactiveScope<T>

  • Type Parameters

    Parameters

    • context: T
    • OptionalpropertyKeys: (keyof T)[]

    Returns ReactiveScope<T>

  • Type Parameters

    Parameters

    • ctx: T
    • OptionalpropertyKeys: (keyof T)[]

    Returns ReadOnlyScope<{ this: T }>

  • Type Parameters

    Parameters

    • ctx: T
    • OptionalpropertyKeys: (keyof T)[]

    Returns Scope<{ this: T }>