Interface PseudoAccessor<THost, TValue, TUpdate>

Pseudo-member accessor.

Type Parameters

  • THost extends object

    A type of pseudo-member host object. I.e. a class instance for instance pseudo-members, or a class constructor for static members.

  • TValue extends TUpdate

    Pseudo-member value type.

  • TUpdate

    Pseudo-member update type accepted by its setter.

Hierarchy

  • PseudoAccessor

Properties

Properties

get?: ((this, hostInstance) => TValue)

Type declaration

    • (this, hostInstance): TValue
    • Reads pseudo-member value.

      The pseudo-member is not readable when omitted.

      Parameters

      • this: void
      • hostInstance: THost

        Host object instance.

      Returns TValue

      Pseudo-member value.

key?: string | symbol

Pseudo-member key.

Defaults to PseudoMember__symbol.

set?: ((this, hostInstance, update) => TValue)

Type declaration

    • (this, hostInstance, update): TValue
    • Writes pseudo-member value.

      The pseudo-member is not writable when omitted.

      Parameters

      • this: void
      • hostInstance: THost

        Host object instance.

      • update: TUpdate

        Updated pseudo-member value.

      Returns TValue

Generated using TypeDoc