Fix: Handle struct pointers in new TS generation

This commit is contained in:
Lea Anthony
2022-04-03 17:58:53 +10:00
parent 90fc96b494
commit 55cec7af17
+2 -2
View File
@@ -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())
}
}