Skip to content

Commit ec69fda

Browse files
authored
🐛 fix: update cssVar type to AntdToken in CreateStylesUtils interface (#202)
1 parent f739af5 commit ec69fda

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/factories/createStyles/types.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import type {
2+
AntdToken,
23
BaseReturnType,
34
CommonStyleUtils,
45
FullStylish,
@@ -16,7 +17,10 @@ export interface CreateStylesUtils extends CommonStyleUtils {
1617
* 包含 antd 的 token 和所有自定义 token
1718
*/
1819
token: FullToken;
19-
cssVar: FullToken;
20+
/**
21+
* 支持通过 cssVar 访问的 antd Token,[不包含自定义 Token](https://github.com/ant-design/antd-style/issues/199)
22+
*/
23+
cssVar: AntdToken;
2024
stylish: FullStylish;
2125
/**
2226
* ThemeProvider 下当前的主题模式

0 commit comments

Comments
 (0)