Skip to content

Commit

Permalink
Merge pull request #956 from thewtex/output-indexing
Browse files Browse the repository at this point in the history
fix(bindgen): only skip output index for files with node
  • Loading branch information
thewtex authored Sep 26, 2023
2 parents f90811d + 0e9d378 commit 9ceab72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bindgen/typescript/function-module.js
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ function functionModule (srcOutputDir, forNode, interfaceJson, modulePascalCase,
}
}
functionContent += '\n'
if (!interfaceType.includes('File')) {
if (!(forNode && interfaceType.includes('File'))) {
outputCount++
}
} else {
Expand Down Expand Up @@ -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++
}
})
Expand Down

0 comments on commit 9ceab72

Please sign in to comment.