Fix up template
This commit is contained in:
@@ -1,2 +1,8 @@
|
||||
---@diagnostic disable: missing-return, lowercase-global
|
||||
function {{.Name}}({{range $index, $param := .Params}}{{if $index}}, {{end}}{{$param.Name}}: {{$param.Type}}{{end}}) end
|
||||
{{range .Arguments -}}
|
||||
---@param {{.Name}} {{.Type}} {{.Description}}
|
||||
{{end -}}
|
||||
{{range .Returns -}}
|
||||
---@return {{.Type}} {{.Name}} {{if .Description}}#{{.Description}}{{end}}
|
||||
{{end -}}
|
||||
function {{.Name}}({{range $index, $param := .Arguments}}{{if $index}}, {{end}}{{$param.Name}}{{end}}) end
|
Reference in New Issue
Block a user