File tree Expand file tree Collapse file tree 2 files changed +2
-13
lines changed
packages/dts-generator/src/phases Expand file tree Collapse file tree 2 files changed +2
-13
lines changed Original file line number Diff line number Diff line change @@ -647,9 +647,7 @@ function parseTypeExpressions(symbols: ConcreteSymbol[]) {
647
647
visitAnythingWithAType ( typedef . returnValue ) ;
648
648
}
649
649
if ( typedef . parameters ) {
650
- typedef . parameters . forEach ( ( param ) => {
651
- visitAnythingWithAType ( param ) ;
652
- } ) ;
650
+ typedef . parameters . forEach ( visitParam ) ;
653
651
}
654
652
}
655
653
Original file line number Diff line number Diff line change @@ -1840,16 +1840,7 @@ function buildTypedef(ui5Typedef: TypedefSymbol): TypeAliasDeclaration {
1840
1840
} else if ( ui5Typedef . returnValue || _ . isArray ( ui5Typedef . parameters ) ) {
1841
1841
type = {
1842
1842
kind : "FunctionType" ,
1843
- parameters : _ . map (
1844
- ui5Typedef . parameters ,
1845
- ( param ) =>
1846
- ( {
1847
- kind : "Parameter" ,
1848
- name : param . name ,
1849
- type : param . type ,
1850
- // TODO how to represent parameter documentation?
1851
- } ) as Parameter ,
1852
- ) ,
1843
+ parameters : _ . map ( ui5Typedef . parameters , buildParameter ) ,
1853
1844
} ;
1854
1845
if ( ui5Typedef . returnValue ) {
1855
1846
type . type = ui5Typedef . returnValue . type ; // NOTE: this .type is always an object in the debugger
You can’t perform that action at this time.
0 commit comments