import type { ColumnBuilder, IDataRow, IValueColumnDesc } from 'lineupjs'; /** * A single score result */ export type ISingleScoreResult = { /** * The data to be used for the score column */ data: unknown[]; } & ( | { /** * The lineup builder object to be used for the score column */ builder: ColumnBuilder>; } | { /** * The lineup column desc to be used for the score column */ desc: IValueColumnDesc; } ); export type IScoreResult = ISingleScoreResult | ISingleScoreResult[]; export interface IScoreColumnDesc extends IValueColumnDesc { accessor?(row: IDataRow, desc: Readonly>): T; scoreData: T[]; }