Skip to content

Commit ef42be4

Browse files
authored
refactor: update SpecialString type to use NonNullable (#1361)
1 parent e082bea commit ef42be4

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
@@ -81,7 +81,7 @@ export interface RenderedCell<RecordType> {
8181
export type Direction = 'ltr' | 'rtl';
8282

8383
// SpecialString will be removed in antd@6
84-
export type SpecialString<T> = T | (string & unknown);
84+
export type SpecialString<T> = T | (string & NonNullable<unknown>);
8585

8686
export type DataIndex<T = any> =
8787
| DeepNamePath<T>

0 commit comments

Comments
 (0)