8 lines
No EOL
330 B
Text
8 lines
No EOL
330 B
Text
==== tests/cases/compiler/constructorAsType.ts (1 errors) ====
|
|
var Person:new () => {name: string;} = function () {return {name:"joe"};};
|
|
~~~~~~
|
|
!!! Type '() => { name: string; }' is not assignable to type 'new () => { name: string; }'.
|
|
|
|
var Person2:{new() : {name:string;};};
|
|
|
|
Person = Person2; |