I'm not sure if it's intentional, they seem very useful to me and missing them is inconsistent & also not complying with docs
I guess its as simple as:
export type IfBooleanLiteral<T, Then = true, Else = false> =
IsBooleanLiteral<T> extends true ? Then : Else
export type IfStringLiteral<T, Then = true, Else = false> =
IsStringLiteral<T> extends true ? Then : Else
export type IfNumericLiteral<T, Then = true, Else = false> =
IsNumericLiteral<T> extends true ? Then : Else
Please let me know if you'd like PR and where you'd think it's best to place 'em.
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too