
Security News
Crates.io Implements Trusted Publishing Support
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
@girs/xlib-2.0
Advanced tools
GJS TypeScript type definitions for xlib-2.0, generated from library version 2.0.0
GJS TypeScript type definitions for xlib-2.0, generated from library version 2.0.0 using ts-for-gir v4.0.0-beta.25.
To use this type definitions, install them with NPM:
npm install @girs/xlib-2.0
You can import this package into your project like this:
import xlib from '@girs/xlib-2.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/xlib-2.0
or @girs/xlib-2.0/ambient
in your tsconfig
or entry point Typescript file:
index.ts
:
import '@girs/xlib-2.0'
tsconfig.json
:
{
"compilerOptions": {
...
},
"include": ["@girs/xlib-2.0"],
...
}
Now you can import the ambient module with TypeScript support:
import xlib from 'gi://xlib?version=2.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/xlib-2.0
or @girs/xlib-2.0/import
in your tsconfig
or entry point Typescript file:
index.ts
:
import '@girs/xlib-2.0'
tsconfig.json
:
{
"compilerOptions": {
...
},
"include": ["@girs/xlib-2.0"],
...
}
Now you have also type support for this, too:
const xlib = imports.gi.xlib;
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 xlib-2.0, generated from library version 2.0.0
The npm package @girs/xlib-2.0 receives a total of 0 weekly downloads. As such, @girs/xlib-2.0 popularity was classified as not popular.
We found that @girs/xlib-2.0 demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 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
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.