Open ImLunaHey opened 9 months ago
Argument name should not change.
it should never have been called text to begin with. it's a value.
That is not a typescript issue.
For completeness and consistency, we should generalize to all valid JSON string producing text values.
parse<T extends boolean | number | bigint>(text: T, /*...*/): T
parse<T extends boolean | number | bigint | null>(text: T, /*...*/): unknown
Please let me know if I missed anything in this.
Fixes: https://github.com/total-typescript/ts-reset/issues/173