Skip to content

API reference / Common / Engine types / SpreadsheetOutcome

Type Alias: SpreadsheetOutcome ​

ts
type SpreadsheetOutcome = 
  | {
  workbookEdited: {
     outcome: WorkbookOutcome;
  };
}
  | {
  worksheetEdited: {
     sheet: SheetId;
     outcome: WorksheetOutcome;
  };
}
  | {
  commentsInserted: {
     sheet: SheetId;
     ids: CommentId[];
  };
}
  | {
  commentsDeleted: {
     sheet: SheetId;
     ids: CommentId[];
  };
}
  | {
  commentEdited: {
     sheet: SheetId;
     id: CommentId;
     outcome: CommentOutcome;
  };
};

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