import type { Column } from '../interfaces/iColumn'; import type { AgGridCommon } from '../interfaces/iCommon'; import type { IRowNode } from '../interfaces/iRowNode'; import type { ColDef } from './colDef'; export interface BaseColDefParams extends AgGridCommon { /** Row node for the given row */ node: IRowNode | null; /** Data associated with the node */ data: TData; /** Column for this callback */ column: Column; /** ColDef provided for this column */ colDef: ColDef; } export interface BaseColDefOptionalDataParams extends AgGridCommon { /** Row node for the given row */ node: IRowNode | null; /** Data associated with the node */ data: TData | undefined; /** Column for this callback */ column: Column; /** ColDef provided for this column */ colDef: ColDef; } export interface ColumnFunctionCallbackParams extends AgGridCommon { /** Row node for the given row */ node: IRowNode; /** Data associated with the node. Will be `undefined` for group rows. */ data: TData | undefined; /** Column for this callback */ column: Column; /** ColDef provided for this column */ colDef: ColDef; } export interface ChangedValueParams extends BaseColDefParams { /** The value before the change */ oldValue: TValueOld; /** The value after the change */ newValue: TValueNew; }