mirror of
https://github.com/taigrr/wails.git
synced 2026-04-17 04:05:12 -07:00
JS Object generation. Linting.
This commit is contained in:
@@ -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}}
|
||||
|
||||
Reference in New Issue
Block a user