mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-06 05:27:24 +00:00
feat: Support union underlying type for TS/JS (#7961)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user