Improved declaration files

This commit is contained in:
Lea Anthony
2020-10-30 15:44:00 +11:00
parent a6f924b0a6
commit 9ced48fcc9

View File

@@ -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}}
}