- hasMethod<T, K>(instance: unknown, name: K): instance is { [ P in PropertyKey]: ((...params: any[]) => unknown) } & T
-
Type Parameters
-
T = unknown
-
K extends PropertyKey = keyof T
Parameters
-
instance: unknown
-
name: K
Returns instance is { [ P in PropertyKey]: ((...params: any[]) => unknown) } & T
Tests to see if an object has a function of the specified name.
Returns