UNPKG

tg-map-vue3

Version:

封装 百度地图, Google地图, Here地图(未完成) 的Vue3组件库

16 lines (15 loc) 890 B
/** * 当前版本, tsconfig中`allowJs:true`和`declaration:true`不兼容, 导致引用第三方js库时, 无法利用JSDoc的类型注解 * 未来貌似会增加允许两者同时为true的功能, 详见{@link https://github.com/microsoft/TypeScript/pull/32372} * * 当前使用两个tsconfig, 达到类似效果: * 1. tsconfig.json: `allowJs:true`+`declaration:false`, 用来在VSCode中利用第三方JS库的JSDoc注解 * 2. tsconfig.types.json: `allowJs:false`+`declaration:true`, 用来在编译时正常输出.d.ts文件 * * 而该文件(`js-modules.d.ts`)的作用就是声明用到的第三方js库, 让tsconfig.types.json能够正常编译 * * typescript 3.7 之后已支持两者同时为true, 该文件暂时没有用, 可以移除 */ // cSpell:ignore bmaplib, markerclusterer // declare module 'bmaplib.markerclusterer' // declare module '@google/markerclusterer'