You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is working as intended. Yes, it's weird that the known numeric indices of tuples are string literal types and not numeric literal types, but it's a well-established weirdness that's been around for a long time. It's not a bug, anyway.
π Search Terms
tuple to discriminated union
π Version & Regression Information
β― Playground Link
https://www.typescriptlang.org/play/?ts=5.8.0-dev.20250130#code/FAFwngDgpgBAcgVwLZQE4EsDGBlEGB2A5jALwwAGAJAN77IBGaAvuQNyiSwAqA9oko1QAeLjCgAPEFHwATAM4w5edEQB8pGKIlTZCqtRUAzNDACqYydPkw6A5uRgB+MzABcNqADc07YBIg8qCAw4NAwuFAQALI8MlAANgCMIhY61qhQAIYyPPjxYDAA2giyUIYqUDIANDAAdPUlANb4PADu+IUAup3qZNTAMEUA0jAqMACikqiZmCBCjVBgPIaaNbaCqp3u-YODSpHuQ+y7MEixCe5chUOdxzBM7EyFk3gzcwtLK1xrDGibvv5AsFQrAItFzvEAEwpbRWBQZbK5fJFEpxcr4So1eq1JotdpdHoaHbDUb4CZTN7zRbLVbwZBoLC4AiETbbAa7fYQS58X7CIaqO6DM5xeKXQq8fiCIT827sh7AJ4vaazKmfWn8Bk4ZRqWUcMIxEWJDRgg0JZLFUrozEwagwTyZeIIKDudYmJg9dgAek9uwAeo5gHrYKaocapOCRdCLWiKtUbXaHU6Xbz7h7gN6-Y4gA
π» Code
π Actual behavior
Model1
union types are merged asnumber
typeπ Expected behavior
Model1
type also be same withModel2
Additional information about the issue
No response
The text was updated successfully, but these errors were encountered: