We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
我目前在项目中还在延用 mini-types 作为类型提示,考虑到用的比较多,我想部分迁移到 @mini-types/alipay 来。我发现 @mini-types/alipay 的 namespace 没有 export ,现在点击 my 类型会有两个文件,我该如何同时混用两个包呢。
@mini-types/alipay
my
如果你这边给 namespace 做 export 导出,我是否可以重命名角 my2 或者 newMy 做过度使用呢?还请帮助我理清 类型的困惑
The text was updated successfully, but these errors were encountered:
我测试了下,好像可以。 给 lib.my.d.ts 修改为 export declare namespace my {} ,我就可以 import type { my as my2 } from '@mini-types/my/types/lib.my' 这样我就可以使用 my2 进行类型推断了。
export declare namespace my {}
import type { my as my2 } from '@mini-types/my/types/lib.my'
Sorry, something went wrong.
HadesTang
No branches or pull requests
我目前在项目中还在延用 mini-types 作为类型提示,考虑到用的比较多,我想部分迁移到
@mini-types/alipay
来。我发现 @mini-types/alipay 的 namespace 没有 export ,现在点击my
类型会有两个文件,我该如何同时混用两个包呢。如果你这边给 namespace 做 export 导出,我是否可以重命名角 my2 或者 newMy 做过度使用呢?还请帮助我理清 类型的困惑
The text was updated successfully, but these errors were encountered: