diff --git a/src/bindgen/typescript/function-module.js b/src/bindgen/typescript/function-module.js index e593f7a7b..0d49afcd7 100644 --- a/src/bindgen/typescript/function-module.js +++ b/src/bindgen/typescript/function-module.js @@ -323,7 +323,7 @@ function functionModule (srcOutputDir, forNode, interfaceJson, modulePascalCase, } } functionContent += '\n' - if (!interfaceType.includes('File')) { + if (!(forNode && interfaceType.includes('File'))) { outputCount++ } } else { @@ -460,7 +460,7 @@ function functionModule (srcOutputDir, forNode, interfaceJson, modulePascalCase, functionContent += ` ${camel}: outputs[${outputIndex}].data as ${interfaceType},\n` } } - if (!interfaceType.includes('File')) { + if (!(forNode && interfaceType.includes('File'))) { outputCount++ } })