Skip to content

API reference / Common / Engine types / WorksheetOutcome

Type Alias: WorksheetOutcome ​

ts
type WorksheetOutcome = 
  | {
  cellsReplaced: {
     cells: GridCellRef[];
  };
}
  | {
  cellPropertiesUpdated: {
     cells: GridCellRef[];
  };
}
  | {
  cellMergesUpdated: {
     cells: GridCellRef[];
  };
}
  | {
  rowsInserted: {
     first: GridRowId;
     count: number;
  };
}
  | {
  rowsDeleted: {
     first: GridRowId;
     last: GridRowId;
  };
}
  | {
  rowPropertiesUpdated: {
     first: number;
     last: number;
  };
}
  | {
  columnsInserted: {
     first: GridColumnId;
     count: number;
  };
}
  | {
  columnsDeleted: {
     first: GridColumnId;
     last: GridColumnId;
  };
}
  | {
  columnPropertiesUpdated: {
     first: number;
     last: number;
  };
};

What a WorksheetCommand did to a worksheet's grid — a fact about the sheet, never a selection. Tracks are named as the command names them: by id where it inserts or deletes, by position where it sizes a band of them.