Skip to content

Commit

Permalink
chore: resultinfo types in client
Browse files Browse the repository at this point in the history
  • Loading branch information
davenewza committed Feb 17, 2025
1 parent a3f249d commit 442b84e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion node/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,11 @@ func writeClientTypes(w *codegen.Writer, schema *proto.Schema, api *proto.Api) {
writeModelInterface(w, model, true)
}

for _, a := range proto.GetActionNamesForApi(schema, api) {
action := schema.FindAction(a)
writeResultInfoInterface(w, schema, action)
}

// writing embedded response types
for _, a := range proto.GetActionNamesForApi(schema, api) {
action := schema.FindAction(a)
Expand All @@ -249,7 +254,6 @@ func writeClientTypes(w *codegen.Writer, schema *proto.Schema, api *proto.Api) {
}
model := schema.FindModel(action.ModelName)
writeEmbeddedModelInterface(w, schema, model, toResponseType(action.Name), embeds)
writeResultInfoInterface(w, schema, action)
}

w.Writeln("")
Expand Down

0 comments on commit 442b84e

Please sign in to comment.