Skip to content

Maps with 'value class' keys that have primitive values should be converted to indexed types #28

Closed
@aSemy

Description

@aSemy

PrototypeKey is a primitive, so it's a valid value for an indexed type key.

export interface Dictionary {
  protos: Map<PrototypeKey, PrototypeName>; // actual
  protos: { [key: PrototypeKey]: { [key: string]: PrototypeKey } }; // expected
}

export type PrototypeKey = string;

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingenhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions