17 lines
383 B
TypeScript
17 lines
383 B
TypeScript
//// [constructorOverloads4.ts]
|
|
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");
|
|
|
|
|
|
//// [constructorOverloads4.js]
|
|
(new M.Function("return 5"))();
|
|
M.Function("yo");
|