JSPM

  • Created
  • Published
  • Downloads 24
  • Score
    100M100P100Q62156F
  • License MIT

Node.js TypeScript type definitions for Tepl-5, generated from library version 5.0.0

Package Exports

  • @girs/node-tepl-5
  • @girs/node-tepl-5/import

Readme

Tepl-5

version downloads/week

Node.js TypeScript type definitions for Tepl-5, generated from library version 5.0.0 using ts-for-gir v3.2.4.

Install

To use this type definitions, install them with NPM:

npm install @girs/node-tepl-5

Usage

You can import this package into your project like this:

import Tepl from '@girs/node-tepl-5';

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

const Tepl = require('@girs/node-tepl-5');

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/node-tepl-5 or @girs/node-tepl-5/import in your tsconfig or entry point Typescript file:

index.ts:

import '@girs/node-tepl-5'

tsconfig.json:

{
  "compilerOptions": {
    ...
  },
  "include": ["@girs/node-tepl-5"],
  ...
}

Now you can import the ambient module with TypeScript support:

const gi = require('node-gtk')
const Tepl = gi.require('Tepl', '5')

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.