TS2345: Argument of type '{ columns: ({ alignment: string; width: number; } | { alignment: string; width?: undefined; })[]; spanningCells: ({ col: number; row: number; colSpan: number; rowSpan?: undefined; verticalAlignment?: undefined; alignment?: undefined; } | { ...; } | { ...; })[]; }' is not assignable to parameter of type 'TableUserConfig'. Type '{ columns: ({ alignment: string; width: number; } | { alignment: string; width?: undefined; })[]; spanningCells: ({ col: number; row: number; colSpan: number; rowSpan?: undefined; verticalAlignment?: undefined; alignment?: undefined; } | { ...; } | { ...; })[]; }' is not assignable to type 'BaseUserConfig'. Types of property 'columns' are incompatible. Type '({ alignment: string; width: number; } | { alignment: string; width?: undefined; })[]' is not assignable to type 'Indexable<ColumnUserConfig>'. 'number' index signatures are incompatible. Type '{ alignment: string; width: number; } | { alignment: string; width?: undefined; }' is not assignable to type 'ColumnUserConfig'. Type '{ alignment: string; width: number; }' is not assignable to type 'ColumnUserConfig'. Type '{ alignment: string; width: number; }' is not assignable to type 'CellUserConfig'. Types of property 'alignment' are incompatible. Type 'string' is not assignable to type 'Alignment | undefined'.
Throw the TS error: