mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-03 04:11:05 +08:00
Fixes #1546
This commit is contained in:
parent
c82683babf
commit
1cbc34eff8
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user