fix(generator): render_typed_variable concat
The `snippets.render_typed_variable` types concat characters were wrong. Teal union uses pipe-separator " | " not comma ", ".
This commit is contained in:
parent
697e5d1a27
commit
631f78ff6a
|
@ -17,7 +17,7 @@ function snippets.render_typed_variable(name: string, types: List<string>): stri
|
|||
|
||||
local tmpl_args = {
|
||||
name = name,
|
||||
types = types:concat(", "),
|
||||
types = types:concat(" | "),
|
||||
}
|
||||
|
||||
return utils.do_or_fail(template.substitute, tmpl, tmpl_args)
|
||||
|
|
Loading…
Reference in New Issue