Skip to content

API reference / Common / Engine types / ImageOutcome

Type Alias: ImageOutcome ​

ts
type ImageOutcome = 
  | {
  pageEdited: {
     outcome: ImagePageOutcome;
  };
}
  | {
  shapeEdited: {
     page: ImagePageId;
     outcome: ShapeOutcome;
  };
};

What an ImageCommand did to a document — a fact about the document, never a selection: what is selected after is its issuer's to say. Nested as the commands nest.