[restrict-template-expressions] Invalid type "never" of template literal expression #3069
Closed
3 tasks done
Labels
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
working as intended
Issues that are closed as they are working as intended
Repro
From the official TS docs on union exhaustiveness checks:
Expected Result
A pass? Or something helpful about what to do instead?
Actual Result
repro.ts:25:41: Invalid type "never" of template literal expression. (@typescript-eslint/restrict-template-expressions)
Additional info
Running via
ts-standard
Versions
@typescript-eslint/eslint-plugin
4.14.1
@typescript-eslint/parser
4.14.1
TypeScript
4.1.3
ESLint
7.19.0
node
v14.15.5
The text was updated successfully, but these errors were encountered: