JS Object generation. Linting.

This commit is contained in:
Lea Anthony
2020-11-11 05:58:41 +11:00
parent c3313c90ef
commit 6d3f4c06f1
8 changed files with 80 additions and 47 deletions

View File

@@ -2,6 +2,21 @@
// This file is automatically generated. DO NOT EDIT
{{- range $struct := .Structs }}
{{- if .IsUsedAsData }}
/**
{{if .Comments }}{{range .Comments}} *{{ . }}{{end}}{{end}}
* @typedef {object} {{.Name}}
{{range .Fields}} * @property {{"{"}}{{.JSType}}{{"}"}} {{.Name}}
{{- if .Comments}} - {{- range .Comments}}{{ . }}{{- end}}{{- end}}
{{end}} *
*/
export const {{.Name}} = {
{{- range .Fields}}
{{.Name}},
{{- end}}
}
{{- end}}
{{- if .IsBound }}
{{if .Methods }}
{{if .Comments }}{{range .Comments}}// {{ . }}{{end}}{{end}}