-
Notifications
You must be signed in to change notification settings - Fork 7
Fix: fixed some typescript error #8
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
…Map` for `GetResetStyles`
…r `UseTokenReturn['token']` and `UseTokenReturn['realToken']`
- `AliasToken`: 范型参数,表示别名 token | ||
- `DesignTokenn`: 范型参数,表示设计 token |
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.
DesignTokenn => DesignToken
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.
好眼力😂
- `AliasToken`: 范型参数,表示别名 token | ||
- `DesignTokenn`: 范型参数,表示设计 token | ||
> 使用建议:为了更好的获得 TS 类型支持,建议您在使用 `genStyleUtils` 的时候传入范型参数 `CompTokenMap` `DesignTokenn` `AliasToken` |
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.
DesignTokenn
修复了一些在
antd
集成中遇到的 TS 问题。