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
antd-dayjs-webpack-plugin插件替换moment之后,TypeScript声明文件还是要求传参类型为moment.Moment #23
Comments
@afc163 请教下 antd 的 定义文件是写死 moment.Moment type 的, 这种情况下使用了插件替换 alias ,是不是没啥好办法解决这个问题? |
看看有没有可能 extends 覆盖 antd 提供的类型。 |
我也遇到这样的情况,请问要怎么解决? |
+1 |
as any 吧 |
|
+1 |
+1 |
Seems there's nothing we can do until |
+1 能不能考虑干脆把Moment类替换成Dayjs类编译(虽然有点笨笨) |
[Facepalm] 我直接把 Moment 声明改成 Dayjs 了
大家有什么好的办法也请共享下,感谢~ |
+1 |
1 similar comment
+1 |
Reproduction link
https://github.com/chj-damon/transfer-bug-reproduce
Steps to reproduce
npm start
What is expected?
传参类型不限定moment.Moment
What is actually happening?
传参类型还是moment.Moment
The text was updated successfully, but these errors were encountered: