Open Layers 6 的打字稿类型定义
@types/openlayers
包 (https://www.npmjs.com/package/@types/openlayers) 仅提供 OpenLayers 4.6
的类型定义.这在文件 index.d.ts
的顶部注释中明确说明.
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
.
OpenLayers 6 的类型是否可用,如果没有,使用 OpenLayers 6
开发 Typescript 应用程序应该采取什么行动?
Are types for OpenLayers 6 available and, failing that, what should be the course of action for developing Typescript applications with OpenLayers 6
?
看一看 @types/ol
:
这个包包含 ol 的类型定义(https://github.com/openlayers/openlayers).
This package contains type definitions for ol (https://github.com/openlayers/openlayers).
版本 6.4.2