gradum-kit - v0.1.0
    Preparing search index...

    Function getSuperDescriptor

    • Function

      getSuperDescriptor

      Parameters

      • object: object

        The object whose ancestors to search.

      • key: PropertyKey

        The property to look for.

      Returns PropertyDescriptor

      The inherited descriptor, or undefined if none exists.

      Find how a property is defined one level further up than getFirstPrototypeInChainWith looks, skipping both the object and its immediate prototype. Use it from inside a class to reach the definition its own prototype is overriding.