Skip to content

Conversation

@gibbok
Copy link
Owner

@gibbok gibbok commented Jan 20, 2026

@gibbok gibbok mentioned this pull request Jan 20, 2026
String, Numeric, and Boolean Literal Types are used in the union, type guard, and type aliases.
In the following example you can see a type alias union, `O` can be the only value specified and not any other string:
String, Numeric, and Boolean Literal Types are used in unions, type guards, and type aliases.
In the following example, you can see a union type alias. `O` can be the only allowed value, and no other string is permitted:
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This still seems wrong. Maybe something like "O consists of only the specified values, no other string is valid."

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok improved thanks

@gibbok gibbok merged commit 3b6d8b1 into main Jan 21, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants