UNPKG

isaacscript-common

Version:

Helper functions and features for IsaacScript mods.

5 lines 266 B
/** Helper type to check if an object or class has one or more functions/methods. */ export type HasFunction<T> = Record<string, unknown> extends { [K in keyof T as T[K] extends Function ? K : never]-?: 1; } ? never : T; //# sourceMappingURL=HasFunction.d.ts.map