mirror of
https://github.com/taigrr/wails.git
synced 2026-04-14 02:48:21 -07:00
24 lines
805 B
Plaintext
24 lines
805 B
Plaintext
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
|
|
// This file is automatically generated. DO NOT EDIT
|
|
|
|
{{- if .DeclarationReferences }}
|
|
{{range .DeclarationReferences}}
|
|
/// <reference types="../{{.}}" />{{end}}{{- end}}
|
|
|
|
declare module {{.Name}} { {{range .Structs}}
|
|
{{- if or .IsBound .IsUsedAsData}}
|
|
{{if .Comments }}{{range .Comments}}// {{ . }}{{end}}{{- end}}
|
|
interface {{.Name}} { {{ if .IsUsedAsData }}
|
|
{{- range .Fields}}{{if .Comments }}
|
|
{{range .Comments}}//{{ . }}{{end}}{{- end}}
|
|
{{.Name}}: {{.TypeAsTSType $.Name}}; {{- end}} {{ end }}
|
|
{{- if .IsBound }}
|
|
{{- range .Methods}}
|
|
{{- range .Comments}}
|
|
// {{ . }}{{- end}}
|
|
{{.Name}}({{.InputsAsTSText $.Name}}): Promise<{{.OutputsAsTSText $.Name}}>;
|
|
{{- end}}{{end}}
|
|
}{{- end}}
|
|
{{end}}
|
|
|
|
} |