Closed
Description
Bug Report
π Search Terms
string, template, literal, type
π Version & Regression Information
This is the behavior in every version I tried, including Nightly
β― Playground Link
Playground link with relevant code
π» Code
function getCardTitle(title: string): `test-${string}` {
return `test-${title}`;
}
π Actual behavior
TS infers the type string
for the returned string, instead of the templated type.
π Expected behavior
No error!