Closed
Description
Bug Report Suggestion
π Search Terms
template literal types string
π Version & Regression Information
4.3.0-dev.20210221
- This is the behavior in every version I tried, and I reviewed the FAQ for entries about trmplate literal types
β― Playground Link
π» Code
const foo: `${string}${number}` = 'a123' //no error
const bar: `${string}${number}` = 'foo123' //Type '"foo123"' is not assignable to type '`${string}${number}`'.
π Actual behavior
Type '"foo123"' is not assignable to type '`${string}${number}`'
π Expected behavior
no error