Closed eliamaino-fp closed 1 year ago
Thank you @eliamaino-fp, the column object contains either the name
property or the disabled
property set to true
. Could you update you PR?
@wdavidw do you mean something like this?
type Column = {
name: string;
} | {
disabled: true;
}
I should not write typescript but more something like readonly columns: boolean | { name: string }[] | { disabled: true }[];
if that is correct, or readonly columns: boolean | { name: string, disabled: true }[];
According to the documentation, the
Info
interface should include acolumns
property which returns aboolean
ifoptions.columns
isfalse
and an Array of normalizedColumnOption
ifoptions.columns
is `true.This should fix the following error when trying to access the
columns
property in the callback