From f661729bd81338c48b81e1ba0d1b01a9a0dc847e Mon Sep 17 00:00:00 2001 From: Matt McCormick Date: Wed, 20 Sep 2023 16:19:06 -0400 Subject: [PATCH] fix(bindgen): add preRun argument to sample LoadSampleInputs function --- .../typescript/demo/interface-functions-demo-typescript.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bindgen/typescript/demo/interface-functions-demo-typescript.js b/src/bindgen/typescript/demo/interface-functions-demo-typescript.js index 4cf6ba92c..24d42192c 100644 --- a/src/bindgen/typescript/demo/interface-functions-demo-typescript.js +++ b/src/bindgen/typescript/demo/interface-functions-demo-typescript.js @@ -43,7 +43,7 @@ function interfaceFunctionsDemoTypeScript(packageName, interfaceJson, outputPath result += `import ${functionName}LoadSampleInputs, { usePreRun } from "./${interfaceJson.name}-load-sample-inputs.js"\n` const loadSampleInputsModulePath = path.join(outputPath, `${interfaceJson.name}-load-sample-inputs.ts`) const loadSampleInputsModuleContent = `export default null -// export default async function ${functionName}LoadSampleInputs (model) { +// export default async function ${functionName}LoadSampleInputs (model, preRun=false) { // Load sample inputs for the ${functionName} function. //