Files
tsgo/testdata/baselines/reference/submodule/conformance/assignmentCompatWithEnumIndexer.errors.txt

12 lines
377 B
Plaintext

assignmentCompatWithEnumIndexer.ts(5,5): error TS2741: Property '0' is missing in type '{}' but required in type 'Record<E, any>'.
==== assignmentCompatWithEnumIndexer.ts (1 errors) ====
enum E {
A
}
let foo: Record<E, any> = {}
~~~
!!! error TS2741: Property '0' is missing in type '{}' but required in type 'Record<E, any>'.