mirror of
https://github.com/swc-project/swc.git
synced 2024-12-23 05:32:09 +03:00
10 lines
224 B
TypeScript
10 lines
224 B
TypeScript
|
interface Number {
|
||
|
doStuff(): string;
|
||
|
doOtherStuff<T>(x:T): T;
|
||
|
}
|
||
|
|
||
|
var x = 1;
|
||
|
var a: string = x.doStuff();
|
||
|
var b: string = x.doOtherStuff('hm');
|
||
|
var c: string = x['doStuff']();
|
||
|
var d: string = x['doOtherStuff']('hm');
|