Skip to content
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

建议完善一下在ts问题 #52

Open
zcrkey opened this issue Jul 12, 2024 · 1 comment
Open

建议完善一下在ts问题 #52

zcrkey opened this issue Jul 12, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@zcrkey
Copy link

zcrkey commented Jul 12, 2024

在项目中引入
import Cron, { CronFns, CronProps } from 'qnn-react-cron';

在tsx中,会报下面这个问题
image

如果添加一个 custom.d.ts 然后写入下面内容
declare module 'qnn-react-cron' {
const content: React.FC;
export { CronFns, CronProps };
export default content;
}
在ts中又会失去类似提示功能

@wangzongming
Copy link
Owner

wangzongming commented Jul 17, 2024

感谢反馈,因为不是使用TS实现的,所以导致目前这样,等下个大版本会用TS进行重构~

@wangzongming wangzongming added the enhancement New feature or request label Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants