Type Guards
<T> represents the object's shape coming from the data source. <R> represents the column data type: string, number, Date, or boolean.
isDikeGroupColumnDef
function isDikeGroupColumnDef(column: DikeColumnDef): column is DikeGroupColumnDef {
return column instanceof DikeGroupColumnDef;
}
isDikeDataColumnDef<T, R>
function isDikeDataColumnDef<T extends object, R extends string | number | Date | boolean>(column: DikeColumnDef): column is DikeDataColumnDef<T, R> {
return column instanceof DikeDataColumnDef;
}
Last updated