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