feat: Support union underlying type for TS/JS (#7961)

This commit is contained in:
sssooonnnggg
2023-05-16 04:18:49 +08:00
committed by GitHub
parent 1d3afb90c5
commit b128b802d9
6 changed files with 58 additions and 8 deletions

View File

@@ -2718,7 +2718,7 @@ bool Parser::Supports64BitOffsets() const {
}
bool Parser::SupportsUnionUnderlyingType() const {
return (opts.lang_to_generate & ~IDLOptions::kCpp) == 0;
return (opts.lang_to_generate & ~(IDLOptions::kCpp | IDLOptions::kTs)) == 0;
}
Namespace *Parser::UniqueNamespace(Namespace *ns) {