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