Closed wehrstedt closed 6 years ago
The current generated output looks like this:
declare interface myCustomType {
myProp: string;
}
/**
*
* @param myParam Description
*/
declare function test(myParam: Object.<string, myCustomType>): void
Thats not a vailid syntax
In JSDoc, you have the possibility to describe an object param as follow:
With this syntax, you define that the param
myParam
has some string properties with which value can only be of typemyCustomType
.The typescript equivalent would be