5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-09 15:51:19 +08:00

Improved @returns jsdoc

This commit is contained in:
Lea Anthony 2020-10-30 15:27:38 +11:00
parent 765ae8cd2b
commit a6f924b0a6
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@
* @function {{.Name}}
{{range .Inputs}} * @param {{"{"}}{{.JSType}}{{"}"}} {{.Name}}
{{end}} *
* @returns {Promise}
* @returns {Promise<{{.OutputsAsTSText}}>}
*/
export function {{.Name}}({{.InputsAsTSText}}): Promise<{{.OutputsAsTSText}}>;
{{end}}

View File

@ -9,7 +9,7 @@
* @function {{.Name}}
{{range .Inputs}} * @param {{"{"}}{{.JSType}}{{"}"}} {{.Name}}
{{end}} *
* @returns {Promise}
* @returns {Promise<{{.OutputsAsTSText}}>}
*/
export function {{.Name}}({{.InputsAsJSText}}) {
return window.backend.{{$.Name}}.{{.Name}}({{.InputsAsJSText}});