Security News
The Unpaid Backbone of Open Source: Solo Maintainers Face Increasing Security Demands
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
GJS TypeScript type definitions for Gjs using ts-for-gir v3.0.0-beta.16.
To use this type definitions, install them with NPM:
npm install @girs/gjs
You can import this package into your project like this:
import Gjs from '@girs/gjs';
Or if you prefer CommonJS, you can also use this:
const Gjs = require('@girs/gjs');
You can import core ambient module types.
For this you need to include the @girs/gjs
or @girs/gjs/ambient
in your tsconfig
or entry point Typescript file:
index.ts
:
import '@girs/gjs'
tsconfig.json
:
{
"compilerOptions": {
...
},
"include": ["@girs/gjs"],
...
}
Now you can import gettext
and system
in ESM style with Typescript support:
import gettext from 'gettext';
import system from 'system';
If you want to have more types for GIR modules, you have to add them to your dependencies and import them as well, see the description of these modules, e.g. Gtk-4.0.
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 Gjs
The npm package @girs/gjs receives a total of 9,285 weekly downloads. As such, @girs/gjs popularity was classified as popular.
We found that @girs/gjs 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
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
Security News
License exceptions modify the terms of open source licenses, impacting how software can be used, modified, and distributed. Developers should be aware of the legal implications of these exceptions.
Security News
A developer is accusing Tencent of violating the GPL by modifying a Python utility and changing its license to BSD, highlighting the importance of copyleft compliance.