HasFunction
Type Aliases
HasFunction
Ƭ HasFunction<T
>: Record
<string
, unknown
> extends { [K in keyof T as T[K] extends Function ? K : never]-?: 1 } ? never
: T
Helper type to check if an object or class has one or more functions/methods.
Type parameters
Defined in
packages/isaacscript-common/src/types/HasFunction.ts:2