mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-14 22:55:48 +01:00
Fixes #1546
This commit is contained in:
parent
c82683babf
commit
1cbc34eff8
1 changed files with 4 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue