Allow template strings (with no interpolated expressions) to start off with literal types #16592
Labels
Bug
A bug in TypeScript
Domain: Literal Types
Unit types including string literal types, numeric literal types, Boolean literals, null, undefined
Fixed
A PR has been merged for this issue
Milestone
I can't find the original issue (if there is one).
Expected: No error.
Actual: Type 'string' is not assignable to type '"hello"'.
We should just allow people to use
NoSubstitutionTemplate
s the way that they're allowed to use regular strings.The text was updated successfully, but these errors were encountered: