-
-
Notifications
You must be signed in to change notification settings - Fork 568
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Ordinal
type
#1025
base: main
Are you sure you want to change the base?
Add Ordinal
type
#1025
Conversation
What's the practical use-case for this at the type-level? |
@sindresorhus The
|
@sindresorhus what do you think? Ref: #1025 (comment) |
While the type is an impressive technical achievement, I'm not convinced by any of the mentioned use-cases. None of them are something people would actually do in production. I will let other maintainers here share their opinion too. |
I agree with @sindresorhus; the type looks really cool, but I can’t see any real-world use cases for it. @ohansFavour Perhaps if you share some practical code snippets, it would help us understand better. |
This PR adds a new
Ordinal
type that creates a type that converts a number literal type to its ordinal string representation.