Skip to content

API reference / Common / Engine types / PresentationOutcome

Type Alias: PresentationOutcome ​

ts
type PresentationOutcome = 
  | {
  slideEdited: {
     outcome: SlideOutcome;
  };
}
  | {
  slideSectionEdited: {
     outcome: SlideSectionOutcome;
  };
}
  | {
  shapeEdited: {
     container: ShapeContainerRef;
     outcome: ShapeOutcome;
  };
}
  | {
  commentsInserted: {
     slide: SlideId;
     ids: CommentId[];
  };
}
  | {
  commentsDeleted: {
     slide: SlideId;
     ids: CommentId[];
  };
}
  | {
  commentEdited: {
     slide: SlideId;
     id: CommentId;
     outcome: CommentOutcome;
  };
}
  | {
  automationEdited: {
     outcome: AutomationOutcome;
  };
};

What a PresentationCommand did to a deck — a fact about the deck, never a selection: what is selected after is its issuer's to say. Nested as the commands nest: each family's outcome below its descent.