@tsdotnet/type - v1.2.7
    Preparing search index...

    Function hasMethod

    • Tests to see if an object has a function of the specified name.

      Type Parameters

      • T = unknown
      • K extends PropertyKey = keyof T

      Parameters

      • instance: unknown
      • name: K

      Returns instance is { [P in PropertyKey]: (...params: any[]) => unknown } & T