Unhelpful error message when interface ... extends number
#46246
Comments
I would think of a message like: What do you think? |
Is this issue being worked on? I would like to look into this as a first issue. |
I was actually working on it, sorry I forgot to mention that earlier |
Open
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: