-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Add --ts-undefined-for-optionals command line option #8861
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
base: master
Are you sure you want to change the base?
Add --ts-undefined-for-optionals command line option #8861
Conversation
# Details - Fixes google#7656 - Added a new `--ts-undefined-for-optionals` command line option for `flatc`. - If enabled, generated TypeScript code uses `undefined` for optional fields rather than `null`.
|
Note for myself: run |
|
This is ready. |
bjornharrtell
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some perhaps unnecessary source format changes but otherwise looks like solid work
Could you detail which unnecessary source format changes you mean? I've run |
|
@aardappel I think it's is good to go but can't merge due to the test failure for swift which I would think is unrelated to this PR. |
The error is due to a HTTP download timeout. Probably fixable by re-running the GH action. |
It seems a network issue. Maybe re-running the job could work? Note: I cannot rerun it. |
|
@aardappel I was able to trigger re-run and it seems to work now.. but can't because of this:
No idea what that means. |
|
afaik @dbaileychess has locked the repo for some to changes how things are set up.. we'll have to wait till he is done before further PRs can get merged. |
|
I'm trying to minimize changes while I am working on merging the last 6 months of changes back into Google. Hopefully I can finish tonight or tomorrow, can this wait? |
Sure, no hurries. BTW I've addressed feedback already. |
|
Hi @dbaileychess, I've merged master into this PR. Can we move on? |

Details
undefined(instead ofnull) if the value is not set #7656--ts-undefined-for-optionalscommand line option forflatc.undefinedfor optional fields rather thannull.