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
On Typescript 4.2.x the typed t function throw a type error when using template literal with an expression.
The doc says that's handled by TS 4.2.x and the workaround of as const is required only in TS 4.1.
To Reproduce
Follow the guide for TS support on a project with TS 4.2.x.
Use an expression inside the t function with a template literal
🐛 Bug Report
On Typescript 4.2.x the typed
t
function throw a type error when using template literal with an expression.The doc says that's handled by TS 4.2.x and the workaround of
as const
is required only in TS 4.1.To Reproduce
t
function with a template literalExpected behavior
TS should not throw the error :)
Your Environment
The text was updated successfully, but these errors were encountered: