@danmarshall/deckgl-typings

中文文档
4.9.28发布于 2023/03/07MITTypeScript近 30 天下载 25.5万

TypeScript declaration files for deck.gl

原始使用文档
文档目录3 节
  1. Version mapping
  2. Known issues
  3. 🙏

deckgl-typings

TypeScript declaration files for deck.gl

This is a work in progress - see the issues list

npm install @danmarshall/deckgl-typings

These will automatically appear in your projects node_modules/@types folder, thanks to indefinitely-typed.

Then it is possible to link the mappings in your project so typescript can find them (since the project is not in @types yet).

Create a new file like deckgl.d.ts (although it could be named anything ending in .d.ts) in your src/ directory with the following code:

import * as DeckTypings from "@danmarshall/deckgl-typings"
declare module "deck.gl" {
    export namespace DeckTypings {}
}

Version mapping

deck.gl versiondeckgl-typings version
5.x.x1.x.x
6.x.x2.x.x
7.x.x3.x.x
8.x.x4.x.x

Known issues

These typings are now v4 which targets deck.gl v8. The following issues are changes to v8 from deck.gl v7 which have not been added to these typings:

🙏

Thanks to the community of contributors for adding many typings over the last few months. Please feel free to continue fixes for the above or any other issues. 🥂

版本与发布记录

@danmarshall/deckgl-typings 共发布 120 个版本,首次发布于 2018/07/26;过去 12 个月发布了 0 个版本。

版本发布日期距今
4.9.28latest2023/03/073 年前
4.9.272022/09/234 年前
4.9.262022/09/094 年前
4.9.252022/07/304 年前
4.9.242022/05/124 年前
4.9.232022/05/114 年前

关于 @danmarshall/deckgl-typings 的常见问题

@danmarshall/deckgl-typings 是什么?

TypeScript declaration files for deck.gl

如何安装 @danmarshall/deckgl-typings?

在项目目录运行 npm install @danmarshall/deckgl-typings,或使用 pnpm add / yarn add / bun add。

@danmarshall/deckgl-typings 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@danmarshall/deckgl-typings 可以商用吗?

@danmarshall/deckgl-typings 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@danmarshall/deckgl-typings 的下载量有多少?

根据 npm 官方下载统计,@danmarshall/deckgl-typings 在 2026/10/12 – 2026/11/10 这 30 天内被下载 254,906 次,日均约 8,497 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@danmarshall/deckgl-typings 还在维护吗?

最新版本 4.9.28 发布于 2023/03/07(3 年前);至今共发布 120 个版本,其中过去 12 个月发布了 0 个;首次发布于 2018/07/26。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。