mirror of
https://github.com/wavetermdev/wails.git
synced 2026-08-05 13:53:43 -07:00
Fixes #1546
This commit is contained in:
@@ -73,8 +73,10 @@ func (b *Bindings) GenerateGoBindings(baseDir string) error {
|
||||
firstType := goTypeToTypescriptType(methodDetails.Outputs[0].TypeName, &importNamespaces)
|
||||
returnType += "<" + firstType
|
||||
if methodDetails.OutputCount() == 2 {
|
||||
secondType := goTypeToTypescriptType(methodDetails.Outputs[1].TypeName, &importNamespaces)
|
||||
returnType += "|" + secondType
|
||||
if methodDetails.Outputs[1].TypeName != "error" {
|
||||
secondType := goTypeToTypescriptType(methodDetails.Outputs[1].TypeName, &importNamespaces)
|
||||
returnType += "|" + secondType
|
||||
}
|
||||
}
|
||||
returnType += ">"
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user