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

    Function getSuperMethod

    • Function

      getSuperMethod

      Parameters

      • object: object

        The object whose ancestors to search.

      • key: PropertyKey

        The member to look for.

      • wrapperFn: Function

        The wrapping function to skip over.

      Returns Function

      The inherited implementation, or undefined if there is none.

      Find the inherited implementation a wrapper is standing in for, so a decorator or patched method can call through to it. The wrapper itself is skipped, which is what stops a patched method from finding and recursing into itself.