Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个组件,我将其拆分为特定于平台的文件 ex.component.ios.ts 和 ex.component.android.ts 我的问题是如何将它导入到模块中,因为仅使用 ex.component 会给我一个错误,谢谢。
我认为它可以使用 ex.d.ts 文件来解决
export const ex: any;