mirror of
https://github.com/swc-project/swc.git
synced 2024-12-24 06:05:02 +03:00
13 lines
282 B
TypeScript
13 lines
282 B
TypeScript
interface I {
|
|
(strs: TemplateStringsArray, ...subs: number[]) : I;
|
|
member: {
|
|
new(s: string): {
|
|
new(n: number): {
|
|
new(): boolean;
|
|
};
|
|
};
|
|
};
|
|
}
|
|
var f: I;
|
|
var x = new new new f`abc${0}def`.member("hello")(42) === true;
|