【发布时间】:2020-06-08 08:29:48
【问题描述】:
这是我到目前为止按照https://github.com/DefinitelyTyped/DefinitelyTyped#verifying 上的说明所做的工作。
我分叉了https://github.com/DefinitelyTyped/DefinitelyTyped。
我 git 克隆了我的 fork 并运行 npm install。
我更新了types/markdown-to-jsx的类型定义和测试。
现在,运行 npm run lint markdown-to-jsx 会返回错误。
为什么?
npm run lint markdown-to-jsx
> definitely-typed@0.0.3 lint /Users/sunknudsen/tmp/DefinitelyTyped
> dtslint types "markdown-to-jsx"
Error: Errors in typescript@next for external dependencies:
../react/index.d.ts(34,22): error TS2307: Cannot find module 'csstype'.
【问题讨论】:
标签: typescript definitelytyped