Open crhk opened 1 month ago
I try to use antd-style with a component token but I get this error:
antd-style
Property 'Progress' does not exist on type 'FullToken'.ts(2339)
How can I use it?
const useStyle = createStyles(({ token, css }) => ({ container: css` color: ${token.Progress.defaultColor}px; ` }))
When I check the console in my browser, I can see the object token and it contains Progress, so my app works but I get this type error in my IDE (VSCode)
token
I need to discuss about this usage with our teammates
🧐 问题描述
I try to use
antd-style
with a component token but I get this error:How can I use it?
💻 示例代码
🚑 其他信息
When I check the console in my browser, I can see the object
token
and it contains Progress, so my app works but I get this type error in my IDE (VSCode)