PromoCursed/node_modules/set-function-name/index.d.ts
2024-08-20 23:25:37 +04:00

5 lines
170 B
TypeScript

type Func = (...args: unknown[]) => unknown;
declare function setFunctionName<T extends Func = Func>(fn: T, name: string, loose?: boolean): T;
export = setFunctionName;