【发布时间】:2018-07-13 10:38:34
【问题描述】:
我正在从 VS 2013 + TS 1.8 迁移到 VS 2017 + TS 2.5
作为这项工作的一部分,我似乎必须为 react 等更新类型。
不幸的是,新的类型正在使用 commonjs :
https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-dom
旧类型没有使用任何模块系统。
有没有办法将 commonjs d.ts 转换为“无模块”d.ts?
【问题讨论】:
标签: typescript typescript-typings definitelytyped