Closed gensuineixin closed 3 weeks ago
import('bmap-draw').then(({ DrawScene, DistanceMeasure, AreaMeasure }) 红线提示为:Could not find a declaration file for module 'bmap-draw'. 'd:/***/node_modules/bmap-draw/dist/bmap-draw.min.js' implicitly has an 'any' type.
需要在 d.ts 中添加定义,参考文档的dts文件
declare module 'bmap-draw'
根据该方法,问题已解决。感谢。
import('bmap-draw').then(({ DrawScene, DistanceMeasure, AreaMeasure }) 红线提示为:Could not find a declaration file for module 'bmap-draw'. 'd:/***/node_modules/bmap-draw/dist/bmap-draw.min.js' implicitly has an 'any' type.