fix(generator): render_typed_variable concat
ci/woodpecker/pr/lint Pipeline was successful Details
ci/woodpecker/pr/build Pipeline was successful Details

The `snippets.render_typed_variable` types concat characters were wrong.
Teal union uses pipe-separator " | " not comma ", ".
This commit is contained in:
Aire-One 2022-10-30 18:50:18 +01:00
parent 697e5d1a27
commit 631f78ff6a
1 changed files with 1 additions and 1 deletions

View File

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