forked from BigfootDev/flatbuffers
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) {
|
||||
symbols_expression += ", unionTo" + name;
|
||||
symbols_expression += ", unionListTo" + name;
|
||||
symbols_expression += (", " + namer_.Function("unionTo" + name));
|
||||
symbols_expression += (", " + namer_.Function("unionListTo" + name));
|
||||
}
|
||||
|
||||
return symbols_expression;
|
||||
|
||||
Reference in New Issue
Block a user