Skip to content

invokeAction return type incorrect? #134

@jacobweber

Description

@jacobweber

If I call rest.invokeAction<ResponseType>, the TypeScript definitions and documentation say that it returns something like:

[
  {
    actionName: '',
    isSuccess: true,
    errors: [],
    outputValues: {
      output: ResponseType
    }
  }
]

I think this is incorrect — outputValues should actually be an object of type ResponseType, and shouldn't contain an "output" field. If I log the response, that's what it contains, and it's consistent with the example in the actions developer guide.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions