Result of validating and NFC-normalizing a workbook table name.
Package
@sheetwrite/core
Source
packages/core/src/workbook-table.ts#L40
Variants 2
{ ok: true; name: string }
{ ok: false; code: WorkbookTableNameIssueCodetype WorkbookTableNameIssueCode =
| "empty"
| "too-long"
| "invalid-characters"
| "cell-reference"
| "duplicate";typeWorkbookTableNameIssueCode=|"empty"|"too-long"|"invalid-characters"|"cell-reference"|"duplicate";typeWorkbookTableNameIssueCode=|"empty"|"too-long"|"invalid-characters"|"cell-reference"|"duplicate";Stable reason code returned when a workbook table name is rejected.API reference → }
Declaration
View full TypeScript declaration
exporttypeWorkbookTableNameValidationResult=
| {
ok:true;
name:string;
}
| {
ok:false;
code:WorkbookTableNameIssueCodetype WorkbookTableNameIssueCode =
| "empty"
| "too-long"
| "invalid-characters"
| "cell-reference"
| "duplicate";typeWorkbookTableNameIssueCode=|"empty"|"too-long"|"invalid-characters"|"cell-reference"|"duplicate";typeWorkbookTableNameIssueCode=|"empty"|"too-long"|"invalid-characters"|"cell-reference"|"duplicate";Stable reason code returned when a workbook table name is rejected.API reference →;