This package allows to generate flow or typescript types for SOAP clients generated by the `soap` package.
wsdl-typegenThis package allows to generate flow or typescript types for SOAP clients generated by the soap package.
1. Install with npm or yarn
``sh`
npm i -D wsdl-typegen
`sh`
yarn add -D wsdl-typegen
2. Create and run a script in your package.json
`json`
"scripts": {
"typegen-flow": "wsdl-typegen generate 'path/to/your/wsdls/*/.wsdl'",
"typegen-typescript": "wsdl-typegen generate -t 'path/to/your/wsdls/*/.wsdl'"
}
`sh``
npm run typegen
The typing files will be generated next to your wsdl and xsd files.