Skip to content

Commit

Permalink
Merge pull request #75 from ZimGil/master
Browse files Browse the repository at this point in the history
Add options parameter
  • Loading branch information
dderevjanik authored Apr 16, 2024
2 parents 60d1eda + 91a797e commit 07ed9ff
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,7 @@ export async function generate(
namedImports: [
{ name: "Client", alias: "SoapClient" },
{ name: "createClientAsync", alias: "soapCreateClientAsync" },
{ name: "IExOptions", alias: "ISoapExOptions" }
],
});
clientFile.addImportDeclarations(clientImports);
Expand All @@ -299,6 +300,11 @@ export async function generate(
name: camelcase(method.paramName),
type: method.paramDefinition ? method.paramDefinition.name : "{}",
},
{
name: "options",
type: "ISoapExOptions",
hasQuestionToken: true,
},
],
returnType: `Promise<[result: ${
method.returnDefinition ? method.returnDefinition.name : "unknown"
Expand Down

0 comments on commit 07ed9ff

Please sign in to comment.