
Security News
GitHub Actions Supply Chain Attack Puts Thousands of Projects at Risk
A compromised GitHub Action exposed secrets in CI/CD logs, putting thousands of projects at risk and forcing developers to urgently secure their workflows.
@girs/gtk-4.0
Advanced tools
GJS TypeScript type definitions for Gtk-4.0, generated from library version 4.10.3
GJS TypeScript type definitions for Gtk-4.0, generated from library version 4.10.3 using ts-for-gir v3.0.3.
To use this type definitions, install them with NPM:
npm install @girs/gtk-4.0
You can import this package into your project like this:
import Gtk from '@girs/gtk-4.0';
Or if you prefer CommonJS, you can also use this:
const Gtk = require('@girs/gtk-4.0');
You can also use ambient modules to import this module like you would do this in JavaScript.
For this you need to include @girs/gtk-4.0
or @girs/gtk-4.0/ambient
in your tsconfig
or entry point Typescript file:
index.ts
:
import '@girs/gtk-4.0'
tsconfig.json
:
{
"compilerOptions": {
...
},
"include": ["@girs/gtk-4.0"],
...
}
Now you can import the ambient module with TypeScript support:
import Gtk from 'gi://Gtk?version=4.0';
You can also import the module with Typescript support using the global imports.gi
object of GJS.
For this you need to include @girs/gtk-4.0
or @girs/gtk-4.0/import
in your tsconfig
or entry point Typescript file:
index.ts
:
import '@girs/gtk-4.0'
tsconfig.json
:
{
"compilerOptions": {
...
},
"include": ["@girs/gtk-4.0"],
...
}
Now you have also type support for this, too:
const Gtk = imports.gi.Gtk;
Depending on your project configuration, it is recommended to use a bundler like esbuild. You can find examples using different bundlers here.
All existing pre-generated packages can be found on gjsify/types.
FAQs
GJS TypeScript type definitions for Gtk-4.0, generated from library version 4.17.5
The npm package @girs/gtk-4.0 receives a total of 1,015 weekly downloads. As such, @girs/gtk-4.0 popularity was classified as popular.
We found that @girs/gtk-4.0 demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A compromised GitHub Action exposed secrets in CI/CD logs, putting thousands of projects at risk and forcing developers to urgently secure their workflows.
Research
Security News
A malicious Maven package typosquatting a popular library is secretly stealing OAuth credentials on the 15th of each month, putting Java developers at risk.
Security News
Socket and Seal Security collaborate to fix a critical npm overrides bug, resolving a three-year security issue in the JavaScript ecosystem's most popular package manager.