Skip to content

Commit b3ff2db

Browse files
authored
chore: adjust dataIndex def (#1096)
* chore: adjust dataIndex def * chore: cleanup * chore: adjust
1 parent 99134be commit b3ff2db

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/interface.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@ export interface RenderedCell<RecordType> {
6767

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

70-
export type DataIndex<T = any> = DeepNamePath<T> | '';
70+
export type SpecialString<T> = T | (string & {});
71+
72+
export type DataIndex<T = any> = DeepNamePath<T> | SpecialString<T>;
7173

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

0 commit comments

Comments
 (0)