Skip to content

Map<Integer, WhatEver> x produces field with string key instead of number key #80

@atsu85

Description

@atsu85

Generating TypeScript from

class Bug {
  Map<Integer, String> intKeyMap;
}

produces

export interface Bug {
    intKeyMap: { [key: string ]: string;};
  // intKeyMap: { [key: number]: string;}; // <-- EXPECTED
}

but expecting number to be the key instead of string

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions