typescript type definitions for Open Layers 6

孤人 提交于 2021-01-28 02:32:09

问题


The @types/openlayers package (https://www.npmjs.com/package/@types/openlayers) only supplies type definitions for OpenLayers 4.6. This is stated explicitly at the top comment in file index.d.ts.

Are types for OpenLayers 6 available and, failing that, what should be the course of action for developing Typescript applications with OpenLayers 6 ?


回答1:


Take a look at @types/ol:

This package contains type definitions for ol (https://github.com/openlayers/openlayers).

Version 6.4.2




回答2:


If I believe this source the official package holding openlayers types is @types/ol



来源:https://stackoverflow.com/questions/65145589/typescript-type-definitions-for-open-layers-6

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