String.prototype.toLowerCase()
and String.prototype.toUpperCase()
are typed as returning string
. This doesn't make use of the relatively recently added Uppercase<T>
and Lowercase<T>
types in TypeScript.
I propose adding two functions to this library:
function toLowerCase<T extends string>(string: T): Lowercase<T>;
function toUpperCase<T extends string>(string: T): Uppercase<T>;
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