16 lines
No EOL
581 B
Text
16 lines
No EOL
581 B
Text
tests/cases/compiler/declareClassInterfaceImplementation.ts(5,15): error TS2420: Class 'Buffer' incorrectly implements interface 'IBuffer'.
|
|
Index signature is missing in type 'Buffer'.
|
|
|
|
|
|
==== tests/cases/compiler/declareClassInterfaceImplementation.ts (1 errors) ====
|
|
interface IBuffer {
|
|
[index: number]: number;
|
|
}
|
|
|
|
declare class Buffer implements IBuffer {
|
|
~~~~~~
|
|
!!! error TS2420: Class 'Buffer' incorrectly implements interface 'IBuffer'.
|
|
!!! error TS2420: Index signature is missing in type 'Buffer'.
|
|
|
|
}
|
|
|