Gwebgl-0.1 (英语)
GJS TypeScript gwebgl-0.1 定义,由库版本0.1.0生成,使用 转写 v4.0.0-rc.5. (中文(简体) ).
安装
为了使用这种定义,在国家预防机制中安装:
npm install @girs/gwebgl-0.1
使用量
您可以将此包导入到您的工程中 :
import Gwebgl from '@girs/gwebgl-0.1';
环境模块
您还可以使用 环境模块 以 JavaScript 导入此模块.
为此,您需要包含 @girs/gwebgl-0.1 或者说 @girs/gwebgl-0.1/ambient 在你身边 tsconfig 或输入点 Typescript 文件 :
index.ts数字 :
import '@girs/gwebgl-0.1'
tsconfig.json数字 :
{
"compilerOptions": {
...
},
"include": ["@girs/gwebgl-0.1"],
...
}
现在您可以导入带有 TypeScript 支持的环境模块 :
import Gwebgl from 'gi://Gwebgl?version=0.1';
全球导入
您也可以使用全局导入带有 Typescript 支持的模块 imports.gi gJS 的对象.
为此,您需要包含 @girs/gwebgl-0.1 或者说 @girs/gwebgl-0.1/import 在你身边 tsconfig 或输入点 Typescript 文件 :
index.ts数字 :
import '@girs/gwebgl-0.1'
tsconfig.json数字 :
{
"compilerOptions": {
...
},
"include": ["@girs/gwebgl-0.1"],
...
}
您也为此输入了支持 :
const Gwebgl = imports.gi.Gwebgl;
套装
根据您的项目配置, 建议使用类似捆绑器 兴建。 您可以使用不同的捆绑程序查找示例 这里。 。 。 .
其他软件包
所有已有的预生成软件包均可在 gjsify/类型。 。 。 .