mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
10 lines
446 B
Plaintext
10 lines
446 B
Plaintext
errorLocationForInterfaceExtension.ts(3,21): error TS2840: An interface cannot extend a primitive type like 'string'. It can only extend other named object types.
|
|
|
|
|
|
==== errorLocationForInterfaceExtension.ts (1 errors) ====
|
|
var n = '';
|
|
|
|
interface x extends string { }
|
|
~~~~~~
|
|
!!! error TS2840: An interface cannot extend a primitive type like 'string'. It can only extend other named object types.
|
|
|