mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-21 04:17:02 -06:00
Error messages for extending a specific type
This commit is contained in:
parent
72244c5b03
commit
8ff539245c
@ -5831,7 +5831,7 @@ namespace ts {
|
||||
}
|
||||
}
|
||||
else {
|
||||
error(node, Diagnostics.An_interface_may_only_extend_a_class_or_another_interface);
|
||||
error(node, Diagnostics.An_interface_can_only_extend_an_object_or_intersection_type_with_statically_known_members);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -25979,7 +25979,7 @@ namespace ts {
|
||||
}
|
||||
}
|
||||
else {
|
||||
error(typeRefNode, Diagnostics.A_class_may_only_implement_another_class_or_interface);
|
||||
error(typeRefNode, Diagnostics.A_class_can_only_implement_an_object_or_intersection_type_with_statically_known_members);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -1056,7 +1056,7 @@
|
||||
"category": "Error",
|
||||
"code": 2311
|
||||
},
|
||||
"An interface may only extend a class or another interface.": {
|
||||
"An interface can only extend an object or intersection type with statically known members.": {
|
||||
"category": "Error",
|
||||
"code": 2312
|
||||
},
|
||||
@ -1484,7 +1484,7 @@
|
||||
"category": "Error",
|
||||
"code": 2420
|
||||
},
|
||||
"A class may only implement another class or interface.": {
|
||||
"A class can only implement an object or intersection type with statically known members.": {
|
||||
"category": "Error",
|
||||
"code": 2422
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user