You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error is Argument of type 'typeof Node' is not assignable to parameter of type 'new (...args: any) => any'. Cannot assign an abstract constructor type to a non-abstract constructor type.
The text was updated successfully, but these errors were encountered:
According to documentation,
instance()
should be the equivalent ofinstanceof
. However, it causes a TypeScript error when used with an abstract class.See: https://stackblitz.com/edit/arktype-bug-srv9n6?file=demo.ts
This code fails:
Error is
Argument of type 'typeof Node' is not assignable to parameter of type 'new (...args: any) => any'. Cannot assign an abstract constructor type to a non-abstract constructor type.
The text was updated successfully, but these errors were encountered: