Files
tsgo/testdata/baselines/reference/submodule/compiler/assignmentCompatability44.errors.txt

14 lines
544 B
Plaintext

assignmentCompatability44.ts(5,7): error TS2322: Type 'typeof Foo' is not assignable to type 'new () => Foo'.
Target signature provides too few arguments. Expected 1 or more, but got 0.
==== assignmentCompatability44.ts (1 errors) ====
class Foo {
constructor(x: number) {}
}
const foo: { new(): Foo } = Foo;
~~~
!!! error TS2322: Type 'typeof Foo' is not assignable to type 'new () => Foo'.
!!! error TS2322: Target signature provides too few arguments. Expected 1 or more, but got 0.