Files
wowdoc-scraper/function.tmpl

10 lines
405 B
Cheetah

---@diagnostic disable: missing-return, lowercase-global
{{range .Arguments -}}
---@param {{.Name}} {{.Type}} {{.Description}}
{{end -}}
{{range .Returns -}}
---@return {{.Type}} {{.Name}} {{if .Description}}#{{.Description}}{{end}}
{{end -}}
{{if .Description}}---{{.Description}}{{end}}
function {{.Name}}({{range $index, $param := .Arguments}}{{if $index}}, {{end}}{{$param.Name}}{{end}}) end