@girs/atk-1.0
Advanced tools
Comparing version 2.45.1-3.0.0-beta.14 to 2.45.1-3.0.0-beta.15
@@ -9,1 +9,3 @@ | ||
{ | ||
"name": "@girs/atk-1.0", | ||
"version": "2.45.1-3.0.0-beta.14", | ||
"version": "2.45.1-3.0.0-beta.15", | ||
"description": "GJS TypeScript type definitions for Atk-1.0, generated from library version 2.45.1", | ||
@@ -15,2 +15,4 @@ "type": "module", | ||
"exports": { | ||
"./ambient": "./atk-1.0-ambient.d.ts", | ||
"./import": "./atk-1.0-import.d.ts", | ||
".": { | ||
@@ -33,4 +35,4 @@ "import": { | ||
"dependencies": { | ||
"@girs/glib-2.0": "^2.76.1-3.0.0-beta.14", | ||
"@girs/gobject-2.0": "^2.76.1-3.0.0-beta.14" | ||
"@girs/gobject-2.0": "^2.76.1-3.0.0-beta.15", | ||
"@girs/glib-2.0": "^2.76.1-3.0.0-beta.15" | ||
}, | ||
@@ -37,0 +39,0 @@ "devDependencies": { |
# Atk-1.0 | ||
GJS TypeScript type definitions for Atk-1.0, generated from library version 2.45.1 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.0.0-beta.14. | ||
GJS TypeScript type definitions for Atk-1.0, generated from library version 2.45.1 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.0.0-beta.15. | ||
@@ -10,3 +10,3 @@ ATK provides the set of accessibility interfaces that are implemented by other toolkits and applications. Using the ATK interfaces, accessibility tools have full access to view and control running applications. | ||
To use this type definitions, install them with NPM like this: | ||
To use this type definitions, install them with NPM: | ||
```bash | ||
@@ -28,8 +28,59 @@ npm install @girs/atk-1.0 | ||
If you use [ambient modules](https://github.com/gjsify/ts-for-gir/tree/main/packages/cli#ambient-modules), you can also import this module like you would do this in JavaScript: | ||
### 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 `@girs/atk-1.0` or `@girs/atk-1.0/ambient` in your `tsconfig` or entry point Typescript file: | ||
`index.ts`: | ||
```ts | ||
import '@girs/atk-1.0' | ||
``` | ||
`tsconfig.json`: | ||
```json | ||
{ | ||
"compilerOptions": { | ||
... | ||
}, | ||
"include": ["@girs/atk-1.0"], | ||
... | ||
} | ||
``` | ||
Now you can import the ambient module with TypeScript support: | ||
```ts | ||
import Atk from 'gi://Atk?version=1.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 `@girs/atk-1.0` or `@girs/atk-1.0/import` in your `tsconfig` or entry point Typescript file: | ||
`index.ts`: | ||
```ts | ||
import '@girs/atk-1.0' | ||
``` | ||
`tsconfig.json`: | ||
```json | ||
{ | ||
"compilerOptions": { | ||
... | ||
}, | ||
"include": ["@girs/atk-1.0"], | ||
... | ||
} | ||
``` | ||
Now you have also type support for this, too: | ||
```ts | ||
const Atk = imports.gi.Atk; | ||
``` | ||
### 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). | ||
@@ -39,2 +90,3 @@ | ||
All existing pre-generated packages can be found on [gjsify/types](https://github.com/gjsify/types). | ||
All existing pre-generated packages can be found on [gjsify/types](https://github.com/gjsify/types). | ||
@@ -20,1 +20,3 @@ { | ||
} | ||
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
690204
13153
9
7461
90
1
25