@girs/st-11 11.0.0-4.0.0-beta.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +85 -0
- package/index.d.ts +13 -0
- package/index.js +5 -0
- package/package.json +75 -0
- package/st-11-ambient.d.ts +9 -0
- package/st-11-ambient.js +2 -0
- package/st-11-import.d.ts +1 -0
- package/st-11-import.js +3 -0
- package/st-11.d.ts +15585 -0
- package/st-11.js +5 -0
- package/tsconfig.json +25 -0
- package/typedoc.json +7 -0
package/README.md
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
|
|
2
|
+
# St-11
|
|
3
|
+
|
|
4
|
+

|
|
5
|
+

|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
GJS TypeScript type definitions for St-11, generated from library version 11.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.38.
|
|
9
|
+
|
|
10
|
+
## Install
|
|
11
|
+
|
|
12
|
+
To use this type definitions, install them with NPM:
|
|
13
|
+
```bash
|
|
14
|
+
npm install @girs/st-11
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Usage
|
|
18
|
+
|
|
19
|
+
You can import this package into your project like this:
|
|
20
|
+
```ts
|
|
21
|
+
import St from '@girs/st-11';
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
### Ambient Modules
|
|
25
|
+
|
|
26
|
+
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.
|
|
27
|
+
For this you need to include `@girs/st-11` or `@girs/st-11/ambient` in your `tsconfig` or entry point Typescript file:
|
|
28
|
+
|
|
29
|
+
`index.ts`:
|
|
30
|
+
```ts
|
|
31
|
+
import '@girs/st-11'
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
`tsconfig.json`:
|
|
35
|
+
```json
|
|
36
|
+
{
|
|
37
|
+
"compilerOptions": {
|
|
38
|
+
...
|
|
39
|
+
},
|
|
40
|
+
"include": ["@girs/st-11"],
|
|
41
|
+
...
|
|
42
|
+
}
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
Now you can import the ambient module with TypeScript support:
|
|
46
|
+
|
|
47
|
+
```ts
|
|
48
|
+
import St from 'gi://St?version=11';
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
### Global import
|
|
52
|
+
|
|
53
|
+
You can also import the module with Typescript support using the global `imports.gi` object of GJS.
|
|
54
|
+
For this you need to include `@girs/st-11` or `@girs/st-11/import` in your `tsconfig` or entry point Typescript file:
|
|
55
|
+
|
|
56
|
+
`index.ts`:
|
|
57
|
+
```ts
|
|
58
|
+
import '@girs/st-11'
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
`tsconfig.json`:
|
|
62
|
+
```json
|
|
63
|
+
{
|
|
64
|
+
"compilerOptions": {
|
|
65
|
+
...
|
|
66
|
+
},
|
|
67
|
+
"include": ["@girs/st-11"],
|
|
68
|
+
...
|
|
69
|
+
}
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
Now you have also type support for this, too:
|
|
73
|
+
|
|
74
|
+
```ts
|
|
75
|
+
const St = imports.gi.St;
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
### Bundle
|
|
79
|
+
|
|
80
|
+
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).
|
|
81
|
+
|
|
82
|
+
## Other packages
|
|
83
|
+
|
|
84
|
+
All existing pre-generated packages can be found on [gjsify/types](https://github.com/gjsify/types).
|
|
85
|
+
|
package/index.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Type Definitions for Gjs (https://gjs.guide/)
|
|
3
|
+
*
|
|
4
|
+
* These type definitions are automatically generated, do not edit them by hand.
|
|
5
|
+
* If you found a bug fix it in `ts-for-gir` or create a bug report on https://github.com/gjsify/ts-for-gir
|
|
6
|
+
*
|
|
7
|
+
* This template is used to generate the index.d.ts file of each GIR module like Gtk-4.0, GObject-2.0, ...
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
import './st-11-ambient.d.ts';
|
|
11
|
+
|
|
12
|
+
import St from './st-11.js';
|
|
13
|
+
export default St;
|
package/index.js
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@girs/st-11",
|
|
3
|
+
"version": "11.0.0-4.0.0-beta.38",
|
|
4
|
+
"description": "GJS TypeScript type definitions for St-11, generated from library version 11.0.0",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"module": "st-11.js",
|
|
7
|
+
"main": "st-11.js",
|
|
8
|
+
"exports": {
|
|
9
|
+
"./ambient": {
|
|
10
|
+
"types": "./st-11-ambient.d.ts",
|
|
11
|
+
"import": "./st-11-ambient.js",
|
|
12
|
+
"default": "./st-11-ambient.js"
|
|
13
|
+
},
|
|
14
|
+
"./import": {
|
|
15
|
+
"types": "./st-11-import.d.ts",
|
|
16
|
+
"import": "./st-11-import.js",
|
|
17
|
+
"default": "./st-11-import.js"
|
|
18
|
+
},
|
|
19
|
+
"./st-11": {
|
|
20
|
+
"types": "./st-11.d.ts",
|
|
21
|
+
"import": "./st-11.js",
|
|
22
|
+
"default": "./st-11.js"
|
|
23
|
+
},
|
|
24
|
+
".": {
|
|
25
|
+
"types": "./index.d.ts",
|
|
26
|
+
"import": "./index.js",
|
|
27
|
+
"default": "./index.js"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"scripts": {
|
|
31
|
+
"test": "tsc --project tsconfig.json"
|
|
32
|
+
},
|
|
33
|
+
"dependencies": {
|
|
34
|
+
"@girs/gjs": "4.0.0-beta.38",
|
|
35
|
+
"@girs/meta-11": "11.0.0-4.0.0-beta.38",
|
|
36
|
+
"@girs/xlib-2.0": "2.0.0-4.0.0-beta.38",
|
|
37
|
+
"@girs/xfixes-4.0": "4.0.0-4.0.0-beta.38",
|
|
38
|
+
"@girs/gtk-3.0": "3.24.50-4.0.0-beta.38",
|
|
39
|
+
"@girs/gdk-3.0": "3.24.50-4.0.0-beta.38",
|
|
40
|
+
"@girs/cairo-1.0": "1.0.0-4.0.0-beta.38",
|
|
41
|
+
"@girs/gobject-2.0": "2.86.0-4.0.0-beta.38",
|
|
42
|
+
"@girs/glib-2.0": "2.86.0-4.0.0-beta.38",
|
|
43
|
+
"@girs/pango-1.0": "1.57.0-4.0.0-beta.38",
|
|
44
|
+
"@girs/harfbuzz-0.0": "11.5.0-4.0.0-beta.38",
|
|
45
|
+
"@girs/freetype2-2.0": "2.0.0-4.0.0-beta.38",
|
|
46
|
+
"@girs/gio-2.0": "2.86.0-4.0.0-beta.38",
|
|
47
|
+
"@girs/gmodule-2.0": "2.0.0-4.0.0-beta.38",
|
|
48
|
+
"@girs/gdkpixbuf-2.0": "2.0.0-4.0.0-beta.38",
|
|
49
|
+
"@girs/atk-1.0": "2.58.0-4.0.0-beta.38",
|
|
50
|
+
"@girs/gdesktopenums-3.0": "3.0.0-4.0.0-beta.38",
|
|
51
|
+
"@girs/coglpango-11": "11.0.0-4.0.0-beta.38",
|
|
52
|
+
"@girs/pangocairo-1.0": "1.0.0-4.0.0-beta.38",
|
|
53
|
+
"@girs/cogl-11": "11.0.0-4.0.0-beta.38",
|
|
54
|
+
"@girs/graphene-1.0": "1.0.0-4.0.0-beta.38",
|
|
55
|
+
"@girs/gl-1.0": "1.0.0-4.0.0-beta.38",
|
|
56
|
+
"@girs/clutter-11": "11.0.0-4.0.0-beta.38",
|
|
57
|
+
"@girs/json-1.0": "1.10.8-4.0.0-beta.38",
|
|
58
|
+
"@girs/cally-11": "11.0.0-4.0.0-beta.38" },
|
|
59
|
+
"devDependencies": {
|
|
60
|
+
"typescript": "*"
|
|
61
|
+
},
|
|
62
|
+
"keywords": ["Gir", "TypeScript", "types", "GObject-Introspection", "GJS", "St-11"],
|
|
63
|
+
"author": "ts-for-gir",
|
|
64
|
+
"license": "MIT",
|
|
65
|
+
"repository": {
|
|
66
|
+
"type": "git",
|
|
67
|
+
"url": "git+https://github.com/gjsify/types.git"
|
|
68
|
+
},
|
|
69
|
+
"bugs": {
|
|
70
|
+
"url": "https://github.com/gjsify/ts-for-gir/issues"
|
|
71
|
+
},
|
|
72
|
+
"homepage": "https://github.com/gjsify/types/tree/main/st-11#readme"
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
|
package/st-11-ambient.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
// Module import type definition not generated, otherwise this would cause a type conflict, this is because several GIR modules were generated with the same namespace: "St"
|
package/st-11-import.js
ADDED