-
Notifications
You must be signed in to change notification settings - Fork 37
refactor: solve circule dependency #36
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
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
||
const RESPONSIVE = 'responsive' as const; | ||
const INVALIDATE = 'invalidate' as const; | ||
|
||
export type ComponentType = |
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.
这里删掉了导出,可能会导致有从这里引入的地方报错,需要将迁移 RawItem 中的相关代码在这边也导出一下,如:
export type { ComponentType } from './RawItem'
export { OverflowContext } from './RawItem'
Codecov Report
@@ Coverage Diff @@
## master #36 +/- ##
=======================================
Coverage 98.10% 98.10%
=======================================
Files 5 6 +1
Lines 211 211
Branches 71 72 +1
=======================================
Hits 207 207
Misses 4 4
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
src/RawItem.tsx
Outdated
| React.FC<any> | ||
| keyof React.ReactHTML; | ||
|
||
export const OverflowContext = React.createContext<{ |
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.
Context 放 RawItem 里太奇怪了,直接单独搞个 context.ts
文件吧
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.
好滴
relate ant-design/ant-design#42750