elasticio / odata2openapi

OData to OpenAPI Converter
https://www.elastic.io
MIT License
34 stars 23 forks source link

fix: ensure that generated dts is compatible with --strictNullChecks #41

Open forivall opened 5 years ago

forivall commented 5 years ago

Updates src/Responses.ts to ensure compatibility with --strictNullChecks

Without this change, when using this library with --strictNullChecks, typescript will throw the build error:

dist/Responses.d.ts(4,5): error TS2411: Property 'default' of type 'Reference | Response | undefined' is not assignable to string index type 'Reference | Response'.
CLAassistant commented 5 years ago

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.