Skip to content

Always use Map for int64 keys #708

@zhuscat

Description

@zhuscat
message Foo {
  map<int64, int64> bar = 1;
}

is generated to

export interface Foo {
  bar: { [key: Long]: Long }
}

when --ts_proto_opt=forceLong=long

This is a type error:

An index signature parameter type must be 'string', 'number', 'symbol', or a template literal type.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomershelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions