ant-design / antd-style

css-in-js library with antd v5 token system
https://ant-design.github.io/antd-style/
MIT License
225 stars 35 forks source link

🐛[BUG] Miss CSSObject from 3.6.2 #165

Closed z0215 closed 1 month ago

z0215 commented 2 months ago

🐛 bug 描述

createStyles函数的CSSObject类型丢失,尝试定位问题发现是src/types/css.tsexport { type CSSObject } from '@emotion/css';这行代码出了问题,类型CSSObject没有在@emotion/css导出,应该是在import type { CSSObject } from '@emotion/serialize';导出,不太方便提PR,麻烦尽快修复,谢谢🙏

📷 复现步骤

  1. 通过vite创建一个新项目
  2. 安装依赖antd和antd-style

🏞 期望结果

createStyles方法能够有css属性类型提示

💻 复现代码

import { createStyles } from "antd-style";

const useStyles = createStyles(({token}) => ({ a:{ fontSize: 12 } }))

© 版本信息

🚑 其他信息

image
github-actions[bot] commented 1 month ago

:tada: This issue has been resolved in version 3.6.3 :tada:

The release is available on:

Your semantic-release bot :package::rocket: