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:
parent
765ae8cd2b
commit
a6f924b0a6
@ -9,7 +9,7 @@
|
||||
* @function {{.Name}}
|
||||
{{range .Inputs}} * @param {{"{"}}{{.JSType}}{{"}"}} {{.Name}}
|
||||
{{end}} *
|
||||
* @returns {Promise}
|
||||
* @returns {Promise<{{.OutputsAsTSText}}>}
|
||||
*/
|
||||
export function {{.Name}}({{.InputsAsTSText}}): Promise<{{.OutputsAsTSText}}>;
|
||||
{{end}}
|
@ -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}});
|
||||
|
Loading…
Reference in New Issue
Block a user