最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

babel plugin - Process typescript module type - Stack Overflow

programmeradmin0浏览0评论

I have a babel extension which process files with extension .ext.ts. I cannot explain to typescript then any module with this extension is not of type T, initially detected, but

type Correct<T> = {[K in keyof T]: Fixed<T[K]>}

I think here must help declare module "*.ext.ts", but I don't have the path of module to import the autodetected type.

Thanks in advice.

发布评论

评论列表(0)

  1. 暂无评论