jhannes / openapi-generator-typescript-fetch-api

TypeScript client library using Fetch API and API interfaces
13 stars 6 forks source link

refactor: use const assertion for OpenAPI "enum" arrays #17

Closed eldjuve closed 1 year ago

eldjuve commented 1 year ago

makes the type derived from the array a lot more useful, as the const assertion will be a lot more specific than the type assertion, making it similar to a union type