64 lines
795 B
TypeScript
64 lines
795 B
TypeScript
//// [interfaceDeclaration1.ts]
|
|
interface I1 {
|
|
item:number;
|
|
item:number;
|
|
}
|
|
|
|
interface I2 {
|
|
item:any;
|
|
item:number;
|
|
}
|
|
|
|
interface I3 {
|
|
prototype:number;
|
|
}
|
|
|
|
interface I4 {
|
|
class:number;
|
|
number:number;
|
|
super:number;
|
|
prototype:number;
|
|
}
|
|
|
|
interface I5 extends I5 {
|
|
foo():void;
|
|
}
|
|
|
|
interface I6 {
|
|
():void;
|
|
}
|
|
|
|
interface I7 extends I6 { }
|
|
|
|
var v1:I7;
|
|
v1();
|
|
|
|
class C1 implements I3 {
|
|
constructor() {
|
|
var prototype: number = 3;
|
|
}
|
|
}
|
|
|
|
interface i8 extends i9 { }
|
|
interface i9 extends i8 { }
|
|
|
|
interface i10 {
|
|
foo():number;
|
|
}
|
|
|
|
interface i11{
|
|
foo():string;
|
|
}
|
|
|
|
interface i12 extends i10, i11 { }
|
|
|
|
|
|
//// [interfaceDeclaration1.js]
|
|
var v1;
|
|
v1();
|
|
var C1 = (function () {
|
|
function C1() {
|
|
var prototype = 3;
|
|
}
|
|
return C1;
|
|
})();
|