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
The __proto__ in the object literal has special meanings in JavaScript and TypeScript doesn't recognize that.
__proto__
class X { echo() { return this } } const y = { __proto__: X.prototype }
Type of y is `{ proto: X }
y
Type of y is X
X
The text was updated successfully, but these errors were encountered:
Duplicate of #38385. Literally the first issue after yours when searching for __proto__ (the search term you listed).
Sorry, something went wrong.
Oh I'm sorry
No branches or pull requests
Bug Report
The
__proto__
in the object literal has special meanings in JavaScript and TypeScript doesn't recognize that.🔎 Search Terms
__proto__
🕗 Version & Regression Information
💻 Code
🙁 Actual behavior
Type of
y
is `{ proto: X }🙂 Expected behavior
Type of
y
isX
The text was updated successfully, but these errors were encountered: