RESTyped has a couple of advantages over this:
- RESTyped definitions are extremely lightweight and don't require shipping an API wrapper with a bunch of generated code
- No build/manual copy step required. Easy to distribute typings on NPM.
RESTyped has a couple of advantages over this:
- RESTyped definitions are extremely lightweight and don't require shipping an API wrapper with a bunch of generated code
- No build/manual copy step required. Easy to distribute typings on NPM.
- In what way are RESTyped definitions lighter? A Swagger definition is just a JSON or YAML file and can be used without shipping any additional code (e.g. by https://github.com/swagger-api/swagger-js).
- Swagger only requires a build step when the definition is used to generate code. Definitions can be distributed via NPM (e.g. https://www.npmjs.com/package/appveyor-swagger).
Edit: I realized you were talking about RESTyped being lighter/nobuild compared to Swagger Codegen specifically for TypeScript because it is written in TypeScript. Seems reasonable.