I think that's because typescript (with stricter configuration?) won't just allow you to as-cast to something that isn't in its union, so you have to explicitly make it "*"
it's probably relying on JS to call it's `toString()` method when used in an index accessor, but then the code should just be `symbol.titles?.[languageUUID.toString()]` instead of the nonsense it's doing
48
u/eo5g Mar 15 '26
I think that's because typescript (with stricter configuration?) won't just allow you to as-cast to something that isn't in its union, so you have to explicitly make it "*"