crete new proxy handler object as scoped context

Type Parameters

Implements

Constructors

Methods

Constructors

Methods

  • A trap for the delete operator.

    Parameters

    • model: T
    • propertyKey: string | symbol

    Returns boolean

    A Boolean indicating whether or not the property was deleted.

  • A trap for getting a property value.

    Parameters

    • model: T
    • propertyKey: PropertyKey
    • receiver: any

      The proxy or an object that inherits from the proxy.

    Returns any

  • A trap for setting a property value.

    Parameters

    • model: T
    • propertyKey: PropertyKey
    • value: any
    • receiver: any

      The object to which the assignment was originally directed.

    Returns boolean

    A Boolean indicating whether or not the property was set.