11 lines
272 B
TypeScript
11 lines
272 B
TypeScript
declare module M {
|
|
export class Function {
|
|
constructor(...args: string[]);
|
|
}
|
|
export function Function(...args: any[]): any;
|
|
export function Function(...args: string[]): Function;
|
|
}
|
|
|
|
|
|
(new M.Function("return 5"))();
|
|
M.Function("yo");
|