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
readonly, missing symbol property, readonly typedarray
Playground link with relevant code
const broken: Readonly<Uint8Array> = Uint8Array.of(1, 2, 3, 4); broken[Symbol.iterator] // non-existant const working: Uint8Array = Uint8Array.of(1, 2, 3, 4); working[Symbol.iterator] // okay
TS claims that Symbol.iterator and Symbol.toStringTag do not exist on Readonly.
Code transpiled without error, Symbol.iterator has the same type on Readonly as it does on Uint8Array.
The text was updated successfully, but these errors were encountered:
Looks like a duplicate of #37182. Used search terms: readonly array symbol
readonly array symbol
Sorry, something went wrong.
This will be fixed by #42543
No branches or pull requests
Bug Report
🔎 Search Terms
readonly, missing symbol property, readonly typedarray
🕗 Version & Regression Information
⏯ Playground Link
Playground link with relevant code
💻 Code
🙁 Actual behavior
TS claims that Symbol.iterator and Symbol.toStringTag do not exist on Readonly.
🙂 Expected behavior
Code transpiled without error, Symbol.iterator has the same type on Readonly as it does on Uint8Array.
The text was updated successfully, but these errors were encountered: