Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert to ES6 Map #236

Closed
fridoo opened this issue Jun 13, 2018 · 3 comments
Closed

Convert to ES6 Map #236

fridoo opened this issue Jun 13, 2018 · 3 comments

Comments

@fridoo
Copy link

fridoo commented Jun 13, 2018

I would like to convert a Java Map to an ES6 Map.

From Java:
public Map<String, Object> someMap;

To Typescript:
someMap: Map<string, any>;

instead of
someMap: { [index: string]: any };

Is this possible somehow?

@vojtechhabarta
Copy link
Owner

There is customTypeMappings parameter but it doesn't work with generics.
I'm thinking about improving it.

@vojtechhabarta
Copy link
Owner

Finally I returned to this issue and it is now possible to use generics in customTypeMappings parameter.
Released in v2.10.466.

@vojtechhabarta
Copy link
Owner

Unfortunately mentioned change in v2.10.466 broke mapping of generic classes to TypeScript non-generic types like string. So in 2.16.538 release I changed customTypeMappings parameter format (#384) and it is now needed to specify generic classes including their generic parameters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants