@axah/wsdl-typegen

This package allows to generate flow or typescript types for SOAP clients generated by the soap package.

Usage no npm install needed!

<script type="module">
  import axahWsdlTypegen from 'https://cdn.skypack.dev/@axah/wsdl-typegen';
</script>

README

wsdl-typegen

This package allows to generate flow or typescript types for SOAP clients generated by the soap package.

Usage

  1. Install with npm or yarn
npm i -D wsdl-typegen
yarn add -D wsdl-typegen
  1. Create and run a script in your package.json
"scripts": {
    "typegen-flow": "wsdl-typegen generate 'path/to/your/wsdls/**/*.wsdl'",
    "typegen-typescript": "wsdl-typegen generate -t 'path/to/your/wsdls/**/*.wsdl'"
}
npm run typegen

The typing files will be generated next to your wsdl and xsd files.