mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
12 lines
377 B
Plaintext
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>'.
|
|
|