mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
14 lines
544 B
Plaintext
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.
|
|
|