fix(TS): fixed incorrect function name when importing unionTo functions (#7958)

This commit is contained in:
sssooonnnggg 2023-05-13 01:49:50 +08:00 committed by GitHub
parent 426f3b8bf2
commit 18cadc79c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;