5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-03 01:13:03 +08:00

Use Promise<void> when Go routine does not output (#1821)

This commit is contained in:
SheetJSDev 2022-09-02 19:56:18 -04:00 committed by GitHub
parent 7816b0b67f
commit 53ebb67b72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -80,7 +80,7 @@ func (b *Bindings) GenerateGoBindings(baseDir string) error {
}
returnType += ">"
} else {
returnType = "void"
returnType = "Promise<void>"
}
tsBody.WriteString(returnType + ";\n")
}