Skip to content

API reference / Common / Engine types / PortableOutcome

Type Alias: PortableOutcome ​

ts
type PortableOutcome = 
  | {
  pageEdited: {
     outcome: PageOutcome;
  };
}
  | {
  objectEdited: {
     page: PageId;
     outcome: ObjectOutcome;
  };
}
  | {
  annotationEdited: {
     page: PageId;
     outcome: AnnotationOutcome;
  };
}
  | {
  fontsInserted: {
     ids: FontId[];
  };
}
  | {
  acroFormFieldsReplaced: {
     ids: AcroFormFieldId[];
  };
};

What a PortableCommand 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: each family's outcome below its descent.