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
This code causes an error:
type X<A> = {x: A} interface Foo { // works a(): X<this> // does not work b(): {x: this} }
Output:
foo.ts(7,11): error TS2526: A 'this' type is available only in a non-static member of a class or interface.
It errors if the object type is defined inline, but works for a typedef.
The text was updated successfully, but these errors were encountered:
This is by design. See discussion here.
Sorry, something went wrong.
No branches or pull requests
This code causes an error:
Output:
It errors if the object type is defined inline, but works for a typedef.
The text was updated successfully, but these errors were encountered: