Join Nostr
2025-06-29 07:18:58 UTC

Harald on Nostr: Axel Rauschmayer Hi, did you mention recently that a TypeScript union type is limited ...

Hi, did you mention recently that a TypeScript union type is limited to 25 elements? I can't find your post about it. (Searching Mastodon is a bit of a black art, it seems.) Is that true or do I remember this incorrectly?

The reason is that I am experimenting with scheme for localizations where the allowed strings to localize are elements of a union type. A limit of 25 would be really bad.

https://codeberg.org/harald/pages/src/branch/main/src/ts/Translations.ts

#TypeScript #localization #uniontypes