mirror of
https://github.com/taigrr/wails.git
synced 2026-04-02 05:08:54 -07:00
Improved declaration files
This commit is contained in:
@@ -2,14 +2,8 @@
|
||||
// This file is automatically generated. DO NOT EDIT
|
||||
|
||||
{{range .Comments}}// {{.}}{{end}}
|
||||
{{range .Methods}}
|
||||
/**{{if .Comments }}
|
||||
{{range .Comments}} * {{ . }}{{end}}
|
||||
*{{end}}
|
||||
* @function {{.Name}}
|
||||
{{range .Inputs}} * @param {{"{"}}{{.JSType}}{{"}"}} {{.Name}}
|
||||
{{end}} *
|
||||
* @returns {Promise<{{.OutputsAsTSText}}>}
|
||||
*/
|
||||
export function {{.Name}}({{.InputsAsTSText}}): Promise<{{.OutputsAsTSText}}>;
|
||||
{{end}}
|
||||
declare module {{.Name}} {
|
||||
{{range .Methods}}
|
||||
{{if .Comments }}{{range .Comments}}// {{ . }}{{end}}{{end}}
|
||||
function {{.Name}}({{.InputsAsTSText}}): Promise<{{.OutputsAsTSText}}>;{{end}}
|
||||
}
|
||||
Reference in New Issue
Block a user