Skip to content

Commit 9c70143

Browse files
committed
type: update SpecialString type to use NonNullable (#1361)
1 parent 6fff957 commit 9c70143

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/interface.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export interface RenderedCell<RecordType> {
6868
export type Direction = 'ltr' | 'rtl';
6969

7070
// SpecialString will be removed in antd@6
71-
export type SpecialString<T> = T | (string & {});
71+
export type SpecialString<T> = T | (string & NonNullable<unknown>);
7272

7373
export type DataIndex<T = any> =
7474
| DeepNamePath<T>

0 commit comments

Comments
 (0)