-
-
Notifications
You must be signed in to change notification settings - Fork 590
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: adjust dataIndex def #1096
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1096 +/- ##
=======================================
Coverage 97.96% 97.96%
=======================================
Files 51 51
Lines 4671 4671
Branches 592 592
=======================================
Hits 4576 4576
Misses 91 91
Partials 4 4 ☔ View full report in Codecov by Sentry. |
src/interface.ts
Outdated
@@ -67,7 +67,7 @@ export interface RenderedCell<RecordType> { | |||
|
|||
export type Direction = 'ltr' | 'rtl'; | |||
|
|||
export type DataIndex<T = any> = DeepNamePath<T> | ''; | |||
export type DataIndex<T = any> = DeepNamePath<T> | (string | {}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
export type DataIndex<T = any> = DeepNamePath<T> | (string | {}); | |
type SpecialString<T extends string> = T | (string & {}); | |
export type DataIndex<T = any> = DeepNamePath<T> | (string | {}); |
type DataIndex<T = any> = DeepNamePath | SpecialString<DeepNamePath>
@zombieJ @chenshuai2144 |
ref: #1091