Closed z0215 closed 1 month ago
createStyles函数的CSSObject类型丢失,尝试定位问题发现是src/types/css.ts的export { type CSSObject } from '@emotion/css';这行代码出了问题,类型CSSObject没有在@emotion/css导出,应该是在import type { CSSObject } from '@emotion/serialize';导出,不太方便提PR,麻烦尽快修复,谢谢🙏
export { type CSSObject } from '@emotion/css';
import type { CSSObject } from '@emotion/serialize';
createStyles方法能够有css属性类型提示
import { createStyles } from "antd-style";
const useStyles = createStyles(({token}) => ({ a:{ fontSize: 12 } }))
:tada: This issue has been resolved in version 3.6.3 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
🐛 bug 描述
createStyles函数的CSSObject类型丢失,尝试定位问题发现是src/types/css.ts的
export { type CSSObject } from '@emotion/css';
这行代码出了问题,类型CSSObject没有在@emotion/css导出,应该是在import type { CSSObject } from '@emotion/serialize';
导出,不太方便提PR,麻烦尽快修复,谢谢🙏📷 复现步骤
🏞 期望结果
createStyles方法能够有css属性类型提示
💻 复现代码
import { createStyles } from "antd-style";
const useStyles = createStyles(({token}) => ({ a:{ fontSize: 12 } }))
© 版本信息
🚑 其他信息