@girs/gwebgl-0.1

中文文档
0.1.0-4.0.0-rc.5发布于 2026/04/25MITTypeScriptES Module构建来源已验证近 30 天下载 1.1万

GJS TypeScript type definitions for Gwebgl-0.1, generated from library version 0.1.0

原始使用文档
文档目录6 节
  1. Install
  2. Usage
  3. Ambient Modules
  4. Global import
  5. Bundle
  6. Other packages

Gwebgl-0.1

version downloads/week

GJS TypeScript type definitions for Gwebgl-0.1, generated from library version 0.1.0 using ts-for-gir v4.0.0-rc.5.

Install

To use this type definitions, install them with NPM:

npm install @girs/gwebgl-0.1

Usage

You can import this package into your project like this:

import Gwebgl from '@girs/gwebgl-0.1';

Ambient Modules

You can also use ambient modules to import this module like you would do this in JavaScript. For this you need to include @girs/gwebgl-0.1 or @girs/gwebgl-0.1/ambient in your tsconfig or entry point Typescript file:

index.ts:

import '@girs/gwebgl-0.1'

tsconfig.json:

{
  "compilerOptions": {
    ...
  },
  "include": ["@girs/gwebgl-0.1"],
  ...
}

Now you can import the ambient module with TypeScript support:

import Gwebgl from 'gi://Gwebgl?version=0.1';

Global import

You can also import the module with Typescript support using the global imports.gi object of GJS. For this you need to include @girs/gwebgl-0.1 or @girs/gwebgl-0.1/import in your tsconfig or entry point Typescript file:

index.ts:

import '@girs/gwebgl-0.1'

tsconfig.json:

{
  "compilerOptions": {
    ...
  },
  "include": ["@girs/gwebgl-0.1"],
  ...
}

Now you have also type support for this, too:

const Gwebgl = imports.gi.Gwebgl;

Bundle

Depending on your project configuration, it is recommended to use a bundler like esbuild. You can find examples using different bundlers here.

Other packages

All existing pre-generated packages can be found on gjsify/types.

版本与发布记录

@girs/gwebgl-0.1 共发布 8 个版本,首次发布于 2023/06/15;过去 12 个月发布了 7 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
0.1.0-4.0.0-rc.5latest2026/04/256 个月前
0.1.0-4.0.0-rc.42026/04/157 个月前
0.1.0-4.0.0-rc.32026/04/127 个月前
0.1.0-4.0.0-rc.22026/04/117 个月前
0.1.0-4.0.0-rc.12026/04/037 个月前
0.1.0-4.0.0-beta.442026/04/017 个月前

关于 @girs/gwebgl-0.1 的常见问题

@girs/gwebgl-0.1 是什么?

GJS TypeScript type definitions for Gwebgl-0.1, generated from library version 0.1.0

如何安装 @girs/gwebgl-0.1?

在项目目录运行 npm install @girs/gwebgl-0.1,或使用 pnpm add / yarn add / bun add。

@girs/gwebgl-0.1 支持 TypeScript 吗?

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

@girs/gwebgl-0.1 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@girs/gwebgl-0.1 可以商用吗?

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

@girs/gwebgl-0.1 的下载量有多少?

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

@girs/gwebgl-0.1 还在维护吗?

最新版本 0.1.0-4.0.0-rc.5 发布于 2026/04/25(6 个月前);至今共发布 8 个版本,其中过去 12 个月发布了 7 个;首次发布于 2023/06/15。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。