Closed allejo closed 6 years ago
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?
This is a bug in the current version, but the issue belongs to #39 and #38. I will try to fix it now.
Great! Thanks for the fix 👍
Given I have the following jsdoc for a function,
This is the resulting invalid TS that I get:
Is there a correct way of handling multi-dimensional arrays of different types or is this a bug in the generation?