-
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
typescript-rxjs: fix query parameters type #4160
typescript-rxjs: fix query parameters type #4160
Conversation
…ipt-rxjs-query-parameters-type
I would have preferred the |
Or even cleaner would be extending the definition of
Then the generated controllers would not be affected at all. |
@denyo will you file a PR to make the changeS? |
I can't before next week. |
with type HttpQuery = { [key: string]: string | number | null | boolean | Array<string | number | null | boolean> } | {}; the type-safety is lost, i.e. const bla: HttpQuery = { bla: new SomeObject()}; |
The problem is this: type HttpQuery = ... | {}; If type HttpQuery = Partial<{ [key: string]: string | number | null | boolean | Array<string | number | null | boolean> }>; See a working example: TS Playground |
@macjohnny thanks for the PR, which has been included in v4.2.0 release: https://twitter.com/oas_generator/status/1189824932345069569 |
fixes #4159
cc @akehir @denyo