mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-27 03:02:18 +00:00
fix(TS): fixed incorrect function name when importing unionTo functions (#7958)
This commit is contained in:
@@ -849,8 +849,8 @@ class TsGenerator : public BaseGenerator {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (enum_def.is_union) {
|
if (enum_def.is_union) {
|
||||||
symbols_expression += ", unionTo" + name;
|
symbols_expression += (", " + namer_.Function("unionTo" + name));
|
||||||
symbols_expression += ", unionListTo" + name;
|
symbols_expression += (", " + namer_.Function("unionListTo" + name));
|
||||||
}
|
}
|
||||||
|
|
||||||
return symbols_expression;
|
return symbols_expression;
|
||||||
|
|||||||
Reference in New Issue
Block a user