@sheetwrite/coretype
Actionable transaction outcome for a stable sheet lifecycle target.
- Package
@sheetwrite/core- Source
packages/core/src/types/grid.ts#L434
Declaration
export type SheetLifecycleResult = ApplyTransactionResulttype ApplyTransactionResult =
| {
status: "applied";
epoch: number;
transaction: Transaction;
warnings?: MutationIssue[];
rejections?: MutationIssue[];
}
| {
status: "conflict";
expectedEpoch: number;
actualEpoch: number;
}
| { status: "rejected"; epoch: number; issues: MutationIssue[] }
| {
// … 5 more lines — see the API reference
}type ApplyTransactionResult =
| {
status: "applied";
epoch: number;
transaction: Transaction;
warnings?: MutationIssue[];
rejections?: MutationIssue[];
}
| {
status: "conflict";
expectedEpoch: number;
actualEpoch: number;
}
| { status: "rejected"; epoch: number; issues: MutationIssue[] }
| {
// … 5 more lines — see the API reference
}type ApplyTransactionResult =
| {
status: "applied";
epoch: number;
transaction: Transaction;
warnings?: MutationIssue[];
rejections?: MutationIssue[];
}
| {
status: "conflict";
expectedEpoch: number;
actualEpoch: number;
}
| {
status: "rejected";
epoch: number;
issues: MutationIssue[];
}
| {
// … 8 more lines — see the API reference
}Outcome of applying a document transaction, including conflict, rejection, and no-op states.API reference → & { readonly sheet: SheetIdtype SheetId = string;type SheetId = string;type SheetId = string;Stable identifier used to address a workbook sheet.API reference →;};