22 lines
324 B
TypeScript
22 lines
324 B
TypeScript
|
//// [interfaceImplementation2.ts]
|
||
|
interface I1 {
|
||
|
iObj:{ };
|
||
|
iNum:number;
|
||
|
iAny:any;
|
||
|
iFn():void;
|
||
|
}
|
||
|
|
||
|
class C3 implements I1 {
|
||
|
public iObj:{ };
|
||
|
public iNum:number;
|
||
|
public iAny:any;
|
||
|
}
|
||
|
|
||
|
|
||
|
//// [interfaceImplementation2.js]
|
||
|
var C3 = (function () {
|
||
|
function C3() {
|
||
|
}
|
||
|
return C3;
|
||
|
})();
|