mirror of
https://github.com/wavetermdev/wails.git
synced 2026-08-05 13:53:43 -07:00
Fix: Handle struct pointers in new TS generation
This commit is contained in:
@@ -91,7 +91,7 @@ func (b *Bindings) getMethods(value interface{}) ([]*BoundMethod, error) {
|
||||
a := reflect.New(typ)
|
||||
s := reflect.Indirect(a).Interface()
|
||||
b.converter.Add(s)
|
||||
boundMethod.StructNames = append(boundMethod.StructNames, thisInput.Name())
|
||||
boundMethod.StructNames = append(boundMethod.StructNames, typ.Name())
|
||||
}
|
||||
}
|
||||
|
||||
@@ -130,7 +130,7 @@ func (b *Bindings) getMethods(value interface{}) ([]*BoundMethod, error) {
|
||||
a := reflect.New(typ)
|
||||
s := reflect.Indirect(a).Interface()
|
||||
b.converter.Add(s)
|
||||
boundMethod.StructNames = append(boundMethod.StructNames, thisOutput.Name())
|
||||
boundMethod.StructNames = append(boundMethod.StructNames, typ.Name())
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user