Minko Gechev on X: "TypeScript tip: use `as const` after literals to: ‣ Recursively set object properties to readonly ‣ Make arrays readonly tuples ‣ Disable type widening https://t.co/uDjNeUnK2U" / X
Suggestion: allow get/set accessors to be of different types · Issue #2521 · microsoft/TypeScript · GitHub
![function - Typescript yells me that 'string | T[]' is not assignable to parameter of type 'ReadonlyArray<T> ' - Stack Overflow function - Typescript yells me that 'string | T[]' is not assignable to parameter of type 'ReadonlyArray<T> ' - Stack Overflow](https://i.stack.imgur.com/8dkA6.png)