Manweill / swagger-axios-codegen

swagger client to use axios and typescript
MIT License
306 stars 83 forks source link

Generated file (service/index.ts) should be TypeScript strict mode complaint #23

Closed callmeberzerker closed 5 years ago

Manweill commented 5 years ago

What problems are you currently experiencing?

callmeberzerker commented 5 years ago

Basically the fields generated on the class are being set via a data object (which is any) and there is a key/string iteration to set the field values. TypeScript complains that there is no gurantee that all fields will be set.

The workaround is to set strict: false in tsconfig.json which opens another can of worms.

Manweill commented 5 years ago

@SpearThruster Okey, I see. And then, I will optimize it on the next version. can you set strict: false some days? Or, you can push PR with it.

Manweill commented 5 years ago

Fixed in Ver 0.5.4