-
Notifications
You must be signed in to change notification settings - Fork 140
docs: demos refactor function component #299
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
docs: demos refactor function component #299
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Codecov Report
@@ Coverage Diff @@
## master #299 +/- ##
=======================================
Coverage 98.85% 98.85%
=======================================
Files 4 4
Lines 87 87
Branches 33 33
=======================================
Hits 86 86
Misses 1 1
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
src/index.tsx
Outdated
export type { | ||
CollapsePanelProps, | ||
CollapseProps, | ||
CollapsibleType, | ||
} from './interface'; |
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.
可不可以用 CollapseProps['xxx']
代替?
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.
原来没暴露出去的,那我调整一下 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.
我看了一下 antd 也没用到这个类型推导。是否要 export 出去呢
export type {
CollapseProps,
CollapsePanelProps
} from './interface';
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.
这两个感觉可以的
No description provided.