Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeScript support #448

Open
DSYZayn opened this issue Oct 27, 2023 · 0 comments
Open

TypeScript support #448

DSYZayn opened this issue Oct 27, 2023 · 0 comments

Comments

@DSYZayn
Copy link

DSYZayn commented Oct 27, 2023

Request a feature or report a bug? [这是一个需求还是一个缺陷]

One-line summary [问题简述]

Version [产品及版本]

  • iClient for leaflet:
  • iClient version :11.1.1:
  • Browser version chrome@latest:
  • OS Version win11--dev:

Actual Behavior [当前现象]

can not support typescript, IDE error:无法找到模块“@supermap/iclient-leaflet”的声明文件。“e:/browserDown/code/gest_webgis/node_modules/@supermap/iclient-leaflet/namespace.js”隐式拥有 "any" 类型。
尝试使用 npm i --save-dev @types/supermap__iclient-leaflet (如果存在),或者添加一个包含 declare module '@supermap/iclient-leaflet'; 的新声明(.d.ts)文件ts(7016)

Expected Behavior [期望现象]

提供@types/supermap-iclient-leaflet扩展类型包

Example of reproducing the issue [重现现象的例子]

use typescript & es6 with @supermap/iclient-leaflet


What is motivation or use case for changing the behavior? [需求的场景和目的是什么?]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant