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.
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? |
|
@dbaileychess, @aardappel friendly ping. |
|
It looks like the requested change block is stale. I will merge if green. |
Stale requested change looks like
|
Thanks! |
|
May I ask when a new NPM release is supposed to happen? |

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