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!