diff --git a/v2/internal/binding/reflect.go b/v2/internal/binding/reflect.go index 5b2d47ba..c0cb05ad 100755 --- a/v2/internal/binding/reflect.go +++ b/v2/internal/binding/reflect.go @@ -68,6 +68,8 @@ func getMethods(value interface{}) ([]*BoundMethod, error) { boundMethod.Inputs = inputs // Iterate outputs + // TODO: Determine what to do about limiting return types + // especially around errors. outputParamCount := methodType.NumOut() var outputs []*Parameter for outputIndex := 0; outputIndex < outputParamCount; outputIndex++ { diff --git a/v2/pkg/commands/build/internal/backendjs/methods.go b/v2/pkg/commands/build/internal/backendjs/methods.go index 1ec3e690..cbcf7613 100644 --- a/v2/pkg/commands/build/internal/backendjs/methods.go +++ b/v2/pkg/commands/build/internal/backendjs/methods.go @@ -75,22 +75,3 @@ func (m *Method) OutputsAsTSText() string { } return strings.Join(result, ", ") } - -// func generateStructFile() { -// // Create string buffer -// var result bytes.Buffer - -// // Add some standard comments -// _, err := result.WriteString(structJSHeader + ) -// if err != nil { -// return errors.Wrap(err, "Error writing string") -// } - -// // Loop over the methods -// for _, method := range methods { -// generatedCode := generateMethodWrapper(method) { - -// } -// } -// return nil -// }