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

Multi-dimensional array with different types #41

Closed
allejo opened this issue Aug 14, 2018 · 2 comments
Closed

Multi-dimensional array with different types #41

allejo opened this issue Aug 14, 2018 · 2 comments
Assignees

Comments

@allejo
Copy link

allejo commented Aug 14, 2018

Given I have the following jsdoc for a function,

/**
 * @param {Array<Array<string|CustomObject>>} [field] ...
 */
function myFunction(field) {}

This is the resulting invalid TS that I get:

static myFunction(field?: Array.<(string|CustomObject)[]): void;

Is there a correct way of handling multi-dimensional arrays of different types or is this a bug in the generation?

@wehrstedt
Copy link
Collaborator

This is a bug in the current version, but the issue belongs to #39 and #38. I will try to fix it now.

@allejo
Copy link
Author

allejo commented Aug 15, 2018

Great! Thanks for the fix 👍

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