summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsssooonnnggg <kevinsong@lilith.com>2023-05-13 01:49:50 +0800
committerGitHub <noreply@github.com>2023-05-12 10:49:50 -0700
commit18cadc79c143a0ebda178fa4763d0c30617cbd04 (patch)
treeb72c790d54615112327372653b1bbb4c805f4a11
parent426f3b8bf2ee9c0bdfd48cd1d3a0145d969d5714 (diff)
downloadflatbuffers-18cadc79c143a0ebda178fa4763d0c30617cbd04.tar.gz
flatbuffers-18cadc79c143a0ebda178fa4763d0c30617cbd04.tar.bz2
flatbuffers-18cadc79c143a0ebda178fa4763d0c30617cbd04.zip
fix(TS): fixed incorrect function name when importing unionTo functions (#7958)
-rw-r--r--src/idl_gen_ts.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/idl_gen_ts.cpp b/src/idl_gen_ts.cpp
index a21b21bd..7bee3f80 100644
--- a/src/idl_gen_ts.cpp
+++ b/src/idl_gen_ts.cpp
@@ -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;