-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Closed
Labels
DuplicateAn existing issue was already createdAn existing issue was already created
Description
I know it's a tricky construction in begin with - but it was compiling fine before 2.4.
class Foo {
[id: string]: { a?: number, b?: number };
v1?: string;
}
with TSC 2.4.1, it gives me an error:
TS2411: Property 'v1' of type 'string' is not assignable to string index type '{ a?: number, b?: number }'.
Metadata
Metadata
Assignees
Labels
DuplicateAn existing issue was already createdAn existing issue was already created