Open Layers 6 的打字稿类型定义 [英] typescript type definitions for Open Layers 6

查看:54
本文介绍了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

这篇关于Open Layers 6 的打字稿类型定义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆