mirror of
https://github.com/google/flatbuffers.git
synced 2025-04-08 09:12:14 +08:00
fix(TS): fixed incorrect function name when importing unionTo functions (#7958)
This commit is contained in:
parent
426f3b8bf2
commit
18cadc79c1
@ -849,8 +849,8 @@ class TsGenerator : public BaseGenerator {
|
||||
}
|
||||
|
||||
if (enum_def.is_union) {
|
||||
symbols_expression += ", unionTo" + name;
|
||||
symbols_expression += ", unionListTo" + name;
|
||||
symbols_expression += (", " + namer_.Function("unionTo" + name));
|
||||
symbols_expression += (", " + namer_.Function("unionListTo" + name));
|
||||
}
|
||||
|
||||
return symbols_expression;
|
||||
|
Loading…
x
Reference in New Issue
Block a user