You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
trying to make a toNumber function that knows the value at compiletime
consttoNumber=<Textendsnumber>(value: Narrow<`${T}`>): T=>Number(value)asTconstvalue: 12=toNumber('12')//TS2322: Type 'number' is not assignable to type '12'.
The text was updated successfully, but these errors were encountered:
🐞 Bug Report
Reproduce the bug
Screenshots
Additional context
trying to make a
toNumber
function that knows the value at compiletimeThe text was updated successfully, but these errors were encountered: