Skip to content

Commit

Permalink
Merge pull request #765 from thewtex/support-input-interface-json
Browse files Browse the repository at this point in the history
Support input interface json
  • Loading branch information
thewtex authored Feb 15, 2023
2 parents e878cf6 + 6e437a5 commit 69bc8f2
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion include/itkSupportInputImageTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ SupportInputImageTypes
for (int ii = 0; ii < iwpArgc; ++ii)
{
const std::string arg(iwpArgv[ii]);
if (arg == "-h" || arg == "--help")
if (arg == "-h" || arg == "--help" || arg == "--interface-json")
{
passThrough = true;
}
Expand Down
2 changes: 1 addition & 1 deletion include/itkSupportInputMeshTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ SupportInputMeshTypes
for (int ii = 0; ii < iwpArgc; ++ii)
{
const std::string arg(iwpArgv[ii]);
if (arg == "-h" || arg == "--help")
if (arg == "-h" || arg == "--help" || arg == "--interface-json")
{
passThrough = true;
}
Expand Down
2 changes: 1 addition & 1 deletion include/itkSupportInputPolyDataTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ SupportInputPolyDataTypes
for (int ii = 0; ii < iwpArgc; ++ii)
{
const std::string arg(iwpArgv[ii]);
if (arg == "-h" || arg == "--help")
if (arg == "-h" || arg == "--help" || arg == "--interface-json")
{
passThrough = true;
}
Expand Down
1 change: 1 addition & 0 deletions src/bindgen/typescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const interfaceJsonTypeToTypeScriptType = new Map([
['BOOL', 'boolean'],
['TEXT', 'string'],
['INT', 'number'],
['FLOAT', 'number'],
['OUTPUT_JSON', 'Object'],
])

Expand Down
2 changes: 1 addition & 1 deletion src/itk-wasm-cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import typescriptBindgen from './bindgen/typescript.js'
const program = new Command()

// Array of types that will require an import from itk-wasm
const defaultImageTag = '20230213-bd821f33'
const defaultImageTag = '20230214-4d22c050'

function processCommonOptions() {
const options = program.opts()
Expand Down

0 comments on commit 69bc8f2

Please sign in to comment.