Closed

Description
Bug Report
π Search Terms
readonly, missing symbol property, readonly typedarray
π Version & Regression Information
- This is the behavior in every version I tried
β― Playground Link
Playground link with relevant code
π» 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
π 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.
Metadata
Metadata
Assignees
Labels
No labels