Discriminated union for table detection results.
Use the kind discriminant to narrow between standard and SmartTable wrappers.
kind
const info: TableInfo = await detectTableType(page, 'myTable');if (info.kind === 'smart') { logger.info(info.smartTableId);} Copy
const info: TableInfo = await detectTableType(page, 'myTable');if (info.kind === 'smart') { logger.info(info.smartTableId);}
Discriminated union for table detection results.