Skip to content
T

TS For Gir

TypeScript type definition generator for GObject introspection interfaces

by gjsifyFree

#3773in Utilities
0In stores

Description

ts-for-gir is a TypeScript type definition generator for GObject Introspection interfaces. It reads GObject Introspection data from GIR file…

Highlights

  • Type definitions for GNOME libraries from GIR files
  • Autocomplete and type errors in your editor
  • Templates for GJS, npm, local and workspace setups
  • Pre-generated @girs packages
  • Install for GJS without Node.js

Ratings & Reviews

No ratings yet

Be the first to rate TS For Gir.

People also visit

S

Sveld

Generate TypeScript definitions and component documentation

Utilities
Launch
R

Renderer

A React renderer for the Gnome JS

Utilities
Launch
T

Tsdocs

Browse type documentation for JS libraries

Developer Tools
Launch
J

Js2Ts

Convert any Javascript code to Typescript. With AI

AI
Launch
T

Typedoc

Documentation generator for TypeScript projects

Utilities
Launch
T

typescript-advanced-types

Comprehensive guidance

AI Skills
Get

TS For Gir FAQ

What does ts-for-gir do?

It generates TypeScript definitions from GObject Introspection data, so your editor understands GNOME libraries.

Do I need Node.js?

No. The README describes a GJS install that does not need Node.js. It installs to ~/.local/bin.

Which template should I use?

types-gjsify for a GJS app with no Node.js, types-npm for a single package using @girs packages, types-locally for a local @types folder, and types-workspace for npm workspaces.

Do I have to generate the types myself?

No. The README says pre-generated packages are listed at gjsify/types.

How do I update it?

For the GJS install, run ts-for-gir self-update.

What are the best TS For Gir alternatives?

Popular alternatives to TS For Gir include Sveld, Renderer and Typedoc. See all TS For Gir alternatives

Developer Stuff

Badges