@sheetwrite/corefunction
Reject an invalid or oversized live workbook before table arrays are copied to WASM.
- Package
@sheetwrite/core- Source
packages/core/src/workbook-table.ts#L201
Declaration
function assertWorkbookTables( sheets: readonly Sheetinterface Sheet {
id: SheetId;
name: string;
visibility?: SheetVisibility;
columns: Column[];
rowCount: number;
rowHeights?: Map<number, number>;
hiddenRows?: Set<number>;
rowGroups?: RowGroup[];
conditionalFormats?: ConditionalFormatRule[];
hyperlinks?: CellHyperlink[];
validationRules?: DataValidationRule[];
protectedRanges?: ProtectedRange[];
notes?: CellNote[];
sortKeys?: SortKey[];
// … 6 more lines — see the API reference
}interface Sheet {
id: SheetId;
name: string;
visibility?: SheetVisibility;
columns: Column[];
rowCount: number;
rowHeights?: Map<number, number>;
hiddenRows?: Set<number>;
rowGroups?: RowGroup[];
conditionalFormats?: ConditionalFormatRule[];
hyperlinks?: CellHyperlink[];
validationRules?: DataValidationRule[];
protectedRanges?: ProtectedRange[];
notes?: CellNote[];
sortKeys?: SortKey[];
// … 6 more lines — see the API reference
}interface Sheet {
id: SheetId;
name: string;
visibility?: SheetVisibility;
columns: Column[];
rowCount: number;
rowHeights?: Map<
number,
number
>;
hiddenRows?: Set<number>;
rowGroups?: RowGroup[];
conditionalFormats?: ConditionalFormatRule[];
hyperlinks?: CellHyperlink[];
validationRules?: DataValidationRule[];
protectedRanges?: ProtectedRange[];
notes?: CellNote[];
sortKeys?: SortKey[];
filters?: Array<
// … 10 more lines — see the API reference
}Workbook sheet schema used when creating a live grid.API reference →[], limits?: Readonly<WorkbookTableResourceLimitsinterface WorkbookTableResourceLimits {
maxTables: number;
maxColumnsPerTable: number;
maxNameLength: number;
maxIdLength: number;
maxStyleNameLength: number;
maxUnsupportedFeaturesPerTable: number;
}interface WorkbookTableResourceLimits {
maxTables: number;
maxColumnsPerTable: number;
maxNameLength: number;
maxIdLength: number;
maxStyleNameLength: number;
maxUnsupportedFeaturesPerTable: number;
}interface WorkbookTableResourceLimits {
maxTables: number;
maxColumnsPerTable: number;
maxNameLength: number;
maxIdLength: number;
maxStyleNameLength: number;
maxUnsupportedFeaturesPerTable: number;
}Resource ceilings for canonical workbook-table metadata and identifiers.API reference →>, reservedNames?: readonly string[],): void