# @gtile/gdk-4.0

> GJS TypeScript type definitions for Gdk-4.0, generated from library version 4.0.0

Latest version **4.0.0-3.2.3** (published 2023-11-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install @gtile/gdk-4.0
pnpm add @gtile/gdk-4.0
yarn add @gtile/gdk-4.0
bun add @gtile/gdk-4.0
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high maintenance score; high quality score.

Warnings: low downloads.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 4.0.0-3.2.3 |
| Published | 2023-11-12 |
| First published | 2023-11-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 11 |
| Unpacked size | 874.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 35 |
| Author | ts-for-gir |
| Maintainers | schanz |
| Keywords | Gir, TypeScript, types, GObject-Introspection, GJS, Gdk-4.0 |

## Links

- npm: https://www.npmjs.com/package/@gtile/gdk-4.0
- Repository: https://github.com/gjsify/types
- Homepage: https://github.com/gjsify/types/tree/main/gdk-4.0#readme
- Issues: https://github.com/gjsify/ts-for-gir/issues
- npm.io page: https://npm.io/package/@gtile/gdk-4.0

## Dependencies (11)

- [@gtile/gjs](https://npm.io/package/@gtile/gjs.md) 3.2.3
- [@gtile/gio-2.0](https://npm.io/package/@gtile/gio-2.0.md) *
- [@gtile/glib-2.0](https://npm.io/package/@gtile/glib-2.0.md) *
- [@gtile/cairo-1.0](https://npm.io/package/@gtile/cairo-1.0.md) *
- [@gtile/pango-1.0](https://npm.io/package/@gtile/pango-1.0.md) *
- [@gtile/gmodule-2.0](https://npm.io/package/@gtile/gmodule-2.0.md) *
- [@gtile/gobject-2.0](https://npm.io/package/@gtile/gobject-2.0.md) *
- [@gtile/harfbuzz-0.0](https://npm.io/package/@gtile/harfbuzz-0.0.md) *
- [@gtile/freetype2-2.0](https://npm.io/package/@gtile/freetype2-2.0.md) *
- [@gtile/gdkpixbuf-2.0](https://npm.io/package/@gtile/gdkpixbuf-2.0.md) *
- [@gtile/pangocairo-1.0](https://npm.io/package/@gtile/pangocairo-1.0.md) *

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 4.0.0-3.2.3 (latest) — 2023-11-12

## README

# Gdk-4.0

![version](https://img.shields.io/npm/v/@gtile/gdk-4.0)
![downloads/week](https://img.shields.io/npm/dw/@gtile/gdk-4.0)


GJS TypeScript type definitions for Gdk-4.0, generated from library version 4.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.3.


## Install

To use this type definitions, install them with NPM:
```bash
npm install @gtile/gdk-4.0
```

## Usage

You can import this package into your project like this:
```ts
import Gdk from '@gtile/gdk-4.0';
```

Or if you prefer CommonJS, you can also use this:
```ts
const Gdk = require('@gtile/gdk-4.0');
```

### Ambient Modules

You can also use [ambient modules](https://github.com/gjsify/ts-for-gir/tree/main/packages/cli#ambient-modules) to import this module like you would do this in JavaScript.
For this you need to include `@gtile/gdk-4.0` or `@gtile/gdk-4.0/ambient` in your `tsconfig` or entry point Typescript file:

`index.ts`:
```ts
import '@gtile/gdk-4.0'
```

`tsconfig.json`:
```json
{
  "compilerOptions": {
    ...
  },
  "include": ["@gtile/gdk-4.0"],
  ...
}
```

Now you can import the ambient module with TypeScript support: 

```ts
import Gdk from 'gi://Gdk?version=4.0';
```

### Global import

You can also import the module with Typescript support using the global `imports.gi` object of GJS.
For this you need to include `@gtile/gdk-4.0` or `@gtile/gdk-4.0/import` in your `tsconfig` or entry point Typescript file:

`index.ts`:
```ts
import '@gtile/gdk-4.0'
```

`tsconfig.json`:
```json
{
  "compilerOptions": {
    ...
  },
  "include": ["@gtile/gdk-4.0"],
  ...
}
```

Now you have also type support for this, too:

```ts
const Gdk = imports.gi.Gdk;
```

### Bundle

Depending on your project configuration, it is recommended to use a bundler like [esbuild](https://esbuild.github.io/). You can find examples using different bundlers [here](https://github.com/gjsify/ts-for-gir/tree/main/examples).

## Other packages

All existing pre-generated packages can be found on [gjsify/types](https://github.com/gjsify/types).

---
_Source: https://npm.io/package/@gtile/gdk-4.0 · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
