diff --git a/src/interface.ts b/src/interface.ts index 7ff462585..06213c043 100644 --- a/src/interface.ts +++ b/src/interface.ts @@ -67,9 +67,10 @@ export interface RenderedCell { export type Direction = 'ltr' | 'rtl'; +// SpecialString will be removed in antd@6 export type SpecialString = T | (string & {}); -export type DataIndex = DeepNamePath | SpecialString; +export type DataIndex = DeepNamePath | SpecialString | number | (SpecialString | number)[]; export type CellEllipsisType = { showTitle?: boolean } | boolean;