@girs/ide-45
v4.3.0
Published
GJS TypeScript type definitions for Ide-45, generated from library version 45.0.0
Readme
Ide-45
GJS TypeScript type definitions for Ide-45, generated from library version 45.0.0 using ts-for-gir v4.3.0.
Install
Install the type definitions with npm:
npm install @girs/ide-45Usage
Import it like any other module:
import Ide from '@girs/ide-45';Ambient Modules
Ambient modules let you write the same import you would in plain JavaScript.
For this you need to include @girs/ide-45 or @girs/ide-45/ambient in your tsconfig or entry point Typescript file:
index.ts:
import '@girs/ide-45'tsconfig.json:
{
"compilerOptions": {
...
},
"include": ["@girs/ide-45"],
...
}The ambient module now resolves with types:
import Ide from 'gi://Ide?version=45';Global import
GJS's global imports.gi works too, with types.
For this you need to include @girs/ide-45 or @girs/ide-45/import in your tsconfig or entry point Typescript file:
index.ts:
import '@girs/ide-45'tsconfig.json:
{
"compilerOptions": {
...
},
"include": ["@girs/ide-45"],
...
}That form carries types as well:
const Ide = imports.gi.Ide;Bundle
Most projects want a bundler. esbuild is the smallest thing that works; the examples directory has setups for several others.
Other packages
All existing pre-generated packages can be found on gjsify/types.
