Unhelpful error message when interface ... extends number
#46246
Labels
Bug
A bug in TypeScript
Domain: Error Messages
The issue relates to error messaging
Good First Issue
Well scoped, documented and has the green light
Help Wanted
You can do this
Bug Report
interface extends only refers to a type
This is the behavior in every version I tried, and I reviewed the FAQ for entries about interface extension
Playground link with relevant code
error TS2693: 'number' only refers to a type, but is being used as a value here.
Informative error about why an interface cannot extend
number
(orstring
-- the error is the same besides the type name)The text was updated successfully, but these errors were encountered: