【发布时间】:2020-03-18 15:08:45
【问题描述】:
当前行为:我从 @types/openlayers": "4.6.17" 迁移到 "@types/ol": "5.3.6" 并且在 ol/render 中找不到函数 getVectorContext(event)所以我手动将它添加到 render.d.ts 但下一次 npm install 我将丢失此修改
想要的行为:我想将包含自定义类型的文件 *.d.ts 添加到我的项目中,但出现错误:找不到模块无法解析'/pathCustomTypes'
【问题讨论】:
标签: typescript types