Gjs
GJS TypeScript type definitions for Gjs using ts-for-gir v3.0.0-beta.13.
Install
To use this type definitions, install them with NPM like this:
npm install @girs/gjs
Usage
You can import this package into your project like this:
import Gjs from '@girs/gjs';
Or if you prefer CommonJS, you can also use this:
const Gjs = require('@girs/gjs');
If you want to use ambient modules, you can import all ambient module types like this:
import '@girs/gjs/ambient'
Depending on your project configuration, it is recommended to use a bundler like esbuild. You can find examples using different bundlers here.