File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed
devextreme-react-generator Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 11{
22 "author" : " Developer Express Inc." ,
33 "name" : " devextreme-react-generator" ,
4- "version" : " 4.1.1 " ,
4+ "version" : " 4.1.2 " ,
55 "description" : " DevExtreme React UI and Visualization Components" ,
66 "repository" : {
77 "type" : " git" ,
Original file line number Diff line number Diff line change @@ -134,7 +134,10 @@ export function getComplexOptionType(
134134 }
135135
136136 function formatFunctionDescriptor ( functionDescriptor : IFunctionDescr ) : string {
137- const parameters = functionDescriptor . params ?. map ( ( p ) => `${ p . name } : ${ getComplexOptionType ( p . types , resolveCustomType ) || BaseTypes . Any } ` )
137+ const parameters = functionDescriptor . params ?. map ( ( p ) => {
138+ const parameterType = getComplexOptionType ( p . types , resolveCustomType ) || BaseTypes . Any ;
139+ return `${ p . name } : ${ parameterType === BaseTypes . Object ? BaseTypes . Any : parameterType } ` ;
140+ } )
138141 . join ( ', ' ) || '' ;
139142 const returnType = (
140143 functionDescriptor . returnValueType && ( formatTypeDescriptor ( functionDescriptor . returnValueType ) || ( functionDescriptor . returnValueType . type === 'void' && 'void' ) )
Original file line number Diff line number Diff line change 3535 "@types/react-dom" : " ^16.9.16" ,
3636 "del" : " ^3.0.0" ,
3737 "devextreme" : " 23.1-next" ,
38- "devextreme-react-generator" : " ^4.1.1 " ,
38+ "devextreme-react-generator" : " ^4.1.2 " ,
3939 "gulp" : " ^4.0.2" ,
4040 "jest" : " ^25.0.0" ,
4141 "react" : " ~18.0.0" ,
You can’t perform that action at this time.
0 commit comments