JSPM

  • Created
  • Published
  • Downloads 33078
  • Score
    100M100P100Q154228F
  • License MIT

GJS TypeScript type definitions for Gjs

Package Exports

  • @girs/gjs
  • @girs/gjs/ambient
  • @girs/gjs/cairo
  • @girs/gjs/gettext
  • @girs/gjs/system

Readme

Gjs

GJS TypeScript type definitions for Gjs using ts-for-gir v3.0.0-beta.14.

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.

Other packages

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