mirror of
https://github.com/swc-project/swc.git
synced 2024-11-28 02:29:04 +03:00
10 lines
229 B
TypeScript
10 lines
229 B
TypeScript
interface Boolean {
|
|
doStuff(): string;
|
|
doOtherStuff<T>(x: T): T;
|
|
}
|
|
|
|
var x = true;
|
|
var a: string = x.doStuff();
|
|
var b: string = x.doOtherStuff('hm');
|
|
var c: string = x['doStuff']();
|
|
var d: string = x['doOtherStuff']('hm'); |