OpenLayers and TypeScript?

╄→гoц情女王★ 提交于 2019-12-04 07:51:15
Steven Ickman

I haven't seen any mention of an OpenLayers.d.ts file yet but there's a growing list of definition files being tracked over here.

Today I have uploaded the definitions for OL 3.1.1 to Github: https://github.com/3x0dv5/ol3-typescript-definitions Feel free to use

There is no definition file yet. I also thought about creating one but instead just resorted to using it via ambient variable declaration.

This is not really an answer, but have you looked into closurets? https://github.com/teppeis/closure-ts It seems promising, however, I wasn't able to convert any ol3 js files. I will try to dig a bit deeper and let you know.

Mattias Josefsson

Here is a link to TypeScript definition files for Openlayers.

OpenLayers Definitionfiles

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!