Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
gjs-esm-types
Advanced tools
Readme
gi://Atk?version=1.0
gi://GLib?version=2.0
gi://GModule?version=2.0
gi://GObject?version=2.0
gi://Gdk?version=3.0
gi://Gdk?version=4.0
gi://GdkPixbuf?version=2.0
gi://Gio?version=2.0
gi://Graphene?version=1.0
gi://Gsk?version=4.0
gi://Gtk?version=3.0
gi://Gtk?version=4.0
gi://HarfBuzz?version=0.0
gi://Pango?version=1.0
gi://PangoCairo?version=1.0
gi://Soup?version=2.4
gi://Soup?version=3.0
gi://cairo?version=1.0
gi://freetype2?version=2.0
gi://xlib?version=2.0
Additionally a module declaration for system
module is included as well as some global functions and variables like globalThis.print()
, globalThis.imports
, globalThis.pkg
etc.
Install this package via npm or yarn
Add this package to the tsconfig.json typeRoots:
{
"compilerOptions": {
"typeRoots": ["node_modules/gjs-esm-types", "node_modules/@types"]
}
}
gi
imports should now be correctly typed:
import Gtk from "gi://Gtk?version=3.0";
const window = new Gtk.Window();
// Resolved Type - const window: Gtk.Window;
This package only provides module declarations for imports with a version specifier. If you want your imports to not include the version, add a .d.ts
file in your project and define the module declarations in there, similarly to this:
declare module "gi://Gtk" {
import Gtk from "gi://Gtk?version=4.0";
export default Gtk;
}
declare module "gi://GLib" {
import GLib from "gi://GLib?version=2.0";
export default GLib;
}
declare module "gi://Soup" {
import Soup from "gi://Soup?version=2.4";
export default Soup;
}
FAQs
TypeScript module declarations for GJS ESM modules.
The npm package gjs-esm-types receives a total of 1 weekly downloads. As such, gjs-esm-types popularity was classified as not popular.
We found that gjs-esm-types demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.