We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"mixin type parameter"
At least since v3.3.3
No response
type Constructor<T = {}> = new ( ...args: any[] ) => T; export const Undo = <Base extends Constructor>( S: Base, ) => { abstract class C<T> extends S { constructor(...args: any[]) { super(...args) } abstract f(x: T): T } return C; };
A mixin class must have a constructor with a single rest parameter of type 'any[]'.(2545) class C<T>
An error message explaining that mixins can't have type parameters since it already has a constructor function with a rest parameter of type any[].
any[]
The text was updated successfully, but these errors were encountered:
duplicate #37142
Sorry, something went wrong.
This issue has been marked as "Duplicate" and has seen no recent activity. It has been automatically closed for house-keeping purposes.
No branches or pull requests
π Search Terms
"mixin type parameter"
π Version & Regression Information
At least since v3.3.3
β― Playground Link
No response
π» Code
π Actual behavior
π Expected behavior
An error message explaining that mixins can't have type parameters since it already has a constructor function with a rest parameter of type
any[]
.Additional information about the issue
No response
The text was updated successfully, but these errors were encountered: