-
Notifications
You must be signed in to change notification settings - Fork 12.6k
New issue
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
Issue with appoint parameter #4709
Comments
This isn't one of our error messages. Are you using WebStorm? |
nope, it is in russian language. here is the original message : |
Also, our language service seems to be fine with it. |
Just tried it out with 1.6 beta, seeing it. The issue is that your type alias shouldn't have both |
oh, yep it work fine, but what about abstract class? Ara there any way to use |
Here is an example of code type Class = {
new (...args: any[]): any;
};
function someannotation(clazz: Class) {
}
@someannotation
abstract class A {
constructor(a: string) {
}
} |
I believe that for now, the only way to do that is to use |
Hi guys, I have gotten issue during compilation and have no idea how to fix it.
The argument type "typeof A" impossible appoint parameter type "{new (): any; new (... args: any []): any;}"
here someannotation function
here Class definition
Are there any way to declare
new (something here):any
that would be available for any kind of constructor include abstract classThe text was updated successfully, but these errors were encountered: