File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -103,12 +103,12 @@ function getDocumentation(object) {
103
103
* @param {string } type - The basic type.
104
104
* @returns {string } The TypeScript type.
105
105
*/
106
- function getBasicType ( type ) {
106
+ function getBasicType ( type , isParam ) {
107
107
if ( ! type ) return "any" ;
108
108
if ( [ "int" , "float" , "int32" ] . includes ( type ) ) return "number" ;
109
109
if ( type == "pin" ) return "Pin" ;
110
110
if ( type == "String" ) return "string" ;
111
- if ( type == "bool" ) return "boolean" ;
111
+ if ( type == "bool" ) return isParam ? "ShortBoolean" : "boolean" ;
112
112
if ( type == "JsVarArray" ) return "any" ;
113
113
if ( type == "JsVar" ) return "any" ;
114
114
if ( type == "Array" ) return "any[]" ;
@@ -138,7 +138,7 @@ function getArguments(method) {
138
138
param [ 0 ] +
139
139
( optional ? "?" : "" ) +
140
140
": " +
141
- getBasicType ( param [ 1 ] ) +
141
+ getBasicType ( param [ 1 ] , 1 ) +
142
142
( rest ? "[]" : "" )
143
143
) ;
144
144
} ) ;
You can’t perform that action at this time.
0 commit comments