神岛 API 文档 - ArenaPro版
    Preparing search index...
    • Gets the own property descriptor of the specified object. An own property descriptor is one that is defined directly on the object and is not inherited from the object's prototype.

      Type Parameters

      • T extends object
      • P extends PropertyKey

      Parameters

      • target: T

        Object that contains the property.

      • propertyKey: P

        The property name.

      Returns TypedPropertyDescriptor<P extends keyof T ? T[P<P>] : any>

    • Gets the own property descriptor of the specified object. An own property descriptor is one that is defined directly on the object and is not inherited from the object's prototype.

      Parameters

      • target: object

        Object that contains the property.

      • propertyKey: PropertyKey

        The property name.

      Returns PropertyDescriptor