-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable typescript option exactOptionalPropertyTypes
#245
Comments
Thanks, can you elaborate why you believe we should revert the PR? I'm not sure I understand. |
Regardless of the issue you reported (#240) , there is another issue caused by readonly which isnt solved by
The above is when compiling our SDK itself, not when consuming it.
I'm mostly interested in why we should enable it. I'm happy to do so if I can understand what it would solve now that readonly is removed. |
Thanks for your time @frederikprijck! Suggesting that the PR could be reverted was by assuming it was only because of difference it makes in the generated types, like I reported in #240. I'll remove it from the initial suggestion. Enabling the option ... and compare it to the result of when having The reason for this change in types is explained here: microsoft/TypeScript#55058 (comment) |
Thanks for that. I have no objections to add it, but I would like to familiarize myself more with the implications before doing so. Even more so, given I don't see any direct need I would prefer not to prioritze this at the moment. If you believe this does need to be added to fix things, happy to reconsider! Closing this for now, but thanks for bringing this up. |
Checklist
Describe the problem you'd like to have solved
Based on the conversation I've had in the typescript repository so far, it seems that #240, which originates from the changes of #235, is best resolved by enabling the typescript option
exactOptionalPropertyTypes
. By enabling this option, issues like #237 would already have been found by running the typescript compiler, which is done prior to every release of the code here.Does anything speak against enabling this option, or is there a reason you would not like to do it?
Describe the ideal solution
Enable the typescript option
exactOptionalPropertyTypes
and revert the changes done in #243.Alternatives and current workarounds
Keep the changes done in #243 and leave
exactOptionalPropertyTypes
disabled.Additional context
microsoft/TypeScript#55058
The text was updated successfully, but these errors were encountered: