2014-07-13 01:04:16 +02:00
|
|
|
//// [constructorAsType.ts]
|
|
|
|
var Person:new () => {name: string;} = function () {return {name:"joe"};};
|
|
|
|
|
|
|
|
var Person2:{new() : {name:string;};};
|
|
|
|
|
|
|
|
Person = Person2;
|
|
|
|
|
|
|
|
//// [constructorAsType.js]
|
2015-02-07 05:03:24 +01:00
|
|
|
var Person = function () { return { name: "joe" }; };
|
2014-07-13 01:04:16 +02:00
|
|
|
var Person2;
|
|
|
|
Person = Person2;
|