mirror of
https://github.com/taigrr/wails.git
synced 2026-04-12 18:11:31 -07:00
29 lines
712 B
Plaintext
29 lines
712 B
Plaintext
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
|
|
// This file is automatically generated. DO NOT EDIT
|
|
|
|
{{- range $struct := .Structs }}
|
|
{{- if .IsBound }}
|
|
{{if .Methods }}
|
|
{{if .Comments }}{{range .Comments}}// {{ . }}{{end}}{{end}}
|
|
export const {{.Name}} = {
|
|
{{range .Methods }}
|
|
/**{{if .Comments }}
|
|
{{range .Comments}} * {{ . }}{{end}}
|
|
*{{end}}
|
|
* @function {{.Name}}
|
|
{{range .Inputs}} * @param {{"{"}}{{.JSType}}{{"}"}} {{.Name}}
|
|
{{end}} *
|
|
* @returns {Promise<{{.OutputsAsTSText $.Name}}>}
|
|
*/
|
|
{{.Name}}: function({{.InputsAsJSText}}) {
|
|
return window.backend.{{$.Name}}.{{$struct.Name}}.{{.Name}}({{.InputsAsJSText}});
|
|
},
|
|
{{end}}
|
|
}
|
|
{{end}}
|
|
{{- end}}
|
|
{{- end}}
|
|
|
|
|
|
|