flatbuffers icon indicating copy to clipboard operation
flatbuffers copied to clipboard

[TS] Fix: bit_flags default values does not exist

Open tira-misu opened this issue 2 years ago • 1 comments

New TS seams to be a bit more restrictive with enum values. Most variables of an enum values are defaulted to 0. But in case of bit_flags value 0 is not defined as an enum value. So the typescript raises an error.

This fix defines an "_None" enum value with value 0 in case of bit_flags enums.

tira-misu avatar Jun 30 '23 16:06 tira-misu

This pull request is stale because it has been open 6 months with no activity. Please comment or label not-stale, or this will be closed in 14 days.

github-actions[bot] avatar Dec 29 '23 20:12 github-actions[bot]

This pull request was automatically closed due to no activity for 6 months plus the 14 day notice period.

github-actions[bot] avatar Jan 12 '24 20:01 github-actions[bot]