Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
@girs/cairo-1.0
Advanced tools
GJS TypeScript type definitions for cairo-1.0, generated from library version 1.0.0
GJS TypeScript type definitions for cairo-1.0, generated from library version 1.0.0 using ts-for-gir v3.2.0.
Cairo is a 2D graphics library with support for multiple output devices like the X Window System (via both Xlib and XCB), Quartz, Win32, image buffers, PostScript, PDF, and SVG.
To use this type definitions, install them with NPM:
npm install @girs/cairo-1.0
You can import this package into your project like this:
import cairo from '@girs/cairo-1.0';
Or if you prefer CommonJS, you can also use this:
const cairo = require('@girs/cairo-1.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/cairo-1.0
or @girs/cairo-1.0/ambient
in your tsconfig
or entry point Typescript file:
index.ts
:
import '@girs/cairo-1.0'
tsconfig.json
:
{
"compilerOptions": {
...
},
"include": ["@girs/cairo-1.0"],
...
}
Now you can import the ambient module with TypeScript support:
import cairo from 'gi://cairo?version=1.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/cairo-1.0
or @girs/cairo-1.0/import
in your tsconfig
or entry point Typescript file:
index.ts
:
import '@girs/cairo-1.0'
tsconfig.json
:
{
"compilerOptions": {
...
},
"include": ["@girs/cairo-1.0"],
...
}
Now you have also type support for this, too:
const cairo = imports.gi.cairo;
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 cairo-1.0, generated from library version 1.0.0
The npm package @girs/cairo-1.0 receives a total of 4,561 weekly downloads. As such, @girs/cairo-1.0 popularity was classified as popular.
We found that @girs/cairo-1.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
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.