JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 525
  • Score
    100M100P100Q103402F
  • License MIT

Node.js TypeScript type definitions for node-gtk

Package Exports

  • @girs/node-gtk
  • @girs/node-gtk/node-ambient

Readme

node-gtk

Node.js TypeScript type definitions for node-gtk using ts-for-gir v3.0.0-beta.14.

Install

To use this type definitions, install them with NPM like this:

npm install @girs/node-gtk

Usage

You can import this package into your project like this:

import NodeGtk from '@girs/node-gtk';

Or if you prefer CommonJS, you can also use this:

const NodeGtk = require('@girs/node-gtk');

If you want to use ambient modules, you can import all ambient module types like this:

import '@girs/node-gtk/node-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.