Skip to content

Commit

Permalink
fix: dataindex allow array (#1097)
Browse files Browse the repository at this point in the history
* Update interface.ts

fix dataindex array

* fix: allow number type
  • Loading branch information
pfdgithub authored Apr 1, 2024
1 parent 7afff24 commit 173c116
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,10 @@ export interface RenderedCell<RecordType> {

export type Direction = 'ltr' | 'rtl';

// SpecialString will be removed in antd@6
export type SpecialString<T> = T | (string & {});

export type DataIndex<T = any> = DeepNamePath<T> | SpecialString<T>;
export type DataIndex<T = any> = DeepNamePath<T> | SpecialString<T> | number | (SpecialString<T> | number)[];

export type CellEllipsisType = { showTitle?: boolean } | boolean;

Expand Down

0 comments on commit 173c116

Please sign in to comment.