@girs/st-13 13.0.0-3.2.4

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 ADDED
@@ -0,0 +1,91 @@
1
+
2
+ # St-13
3
+
4
+ ![version](https://img.shields.io/npm/v/@girs/st-13)
5
+ ![downloads/week](https://img.shields.io/npm/dw/@girs/st-13)
6
+
7
+
8
+ GJS TypeScript type definitions for St-13, generated from library version 13.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.4.
9
+
10
+
11
+ ## Install
12
+
13
+ To use this type definitions, install them with NPM:
14
+ ```bash
15
+ npm install @girs/st-13
16
+ ```
17
+
18
+ ## Usage
19
+
20
+ You can import this package into your project like this:
21
+ ```ts
22
+ import St from '@girs/st-13';
23
+ ```
24
+
25
+ Or if you prefer CommonJS, you can also use this:
26
+ ```ts
27
+ const St = require('@girs/st-13');
28
+ ```
29
+
30
+ ### Ambient Modules
31
+
32
+ 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.
33
+ For this you need to include `@girs/st-13` or `@girs/st-13/ambient` in your `tsconfig` or entry point Typescript file:
34
+
35
+ `index.ts`:
36
+ ```ts
37
+ import '@girs/st-13'
38
+ ```
39
+
40
+ `tsconfig.json`:
41
+ ```json
42
+ {
43
+ "compilerOptions": {
44
+ ...
45
+ },
46
+ "include": ["@girs/st-13"],
47
+ ...
48
+ }
49
+ ```
50
+
51
+ Now you can import the ambient module with TypeScript support:
52
+
53
+ ```ts
54
+ import St from 'gi://St?version=13';
55
+ ```
56
+
57
+ ### Global import
58
+
59
+ You can also import the module with Typescript support using the global `imports.gi` object of GJS.
60
+ For this you need to include `@girs/st-13` or `@girs/st-13/import` in your `tsconfig` or entry point Typescript file:
61
+
62
+ `index.ts`:
63
+ ```ts
64
+ import '@girs/st-13'
65
+ ```
66
+
67
+ `tsconfig.json`:
68
+ ```json
69
+ {
70
+ "compilerOptions": {
71
+ ...
72
+ },
73
+ "include": ["@girs/st-13"],
74
+ ...
75
+ }
76
+ ```
77
+
78
+ Now you have also type support for this, too:
79
+
80
+ ```ts
81
+ const St = imports.gi.St;
82
+ ```
83
+
84
+ ### Bundle
85
+
86
+ 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).
87
+
88
+ ## Other packages
89
+
90
+ All existing pre-generated packages can be found on [gjsify/types](https://github.com/gjsify/types).
91
+
package/package.json ADDED
@@ -0,0 +1,74 @@
1
+ {
2
+ "name": "@girs/st-13",
3
+ "version": "13.0.0-3.2.4",
4
+ "description": "GJS TypeScript type definitions for St-13, generated from library version 13.0.0",
5
+ "type": "module",
6
+ "module": "st-13.js",
7
+ "main": "st-13.js",
8
+ "exports": {
9
+ "./ambient": "./st-13-ambient.d.ts",
10
+ "./import": "./st-13-import.d.ts",
11
+ ".": {
12
+ "import": {
13
+ "types": "./st-13.d.ts",
14
+ "default": "./st-13.js"
15
+ },
16
+ "require": {
17
+ "types": "./st-13.d.cts",
18
+ "default": "./st-13.cjs"
19
+ }
20
+ }
21
+ },
22
+ "scripts": {
23
+ "test": "yarn test:esm && yarn test:cjs",
24
+ "test:esm": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit st-13.d.ts",
25
+ "test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit st-13.d.cts"
26
+ },
27
+ "dependencies": {
28
+ "@girs/atk-1.0": "^2.50.0-3.2.4",
29
+ "@girs/cairo-1.0": "^1.0.0-3.2.4",
30
+ "@girs/cally-13": "^13.0.0-3.2.4",
31
+ "@girs/clutter-13": "^13.0.0-3.2.4",
32
+ "@girs/cogl-13": "^13.0.0-3.2.4",
33
+ "@girs/coglpango-13": "^13.0.0-3.2.4",
34
+ "@girs/freetype2-2.0": "^2.0.0-3.2.4",
35
+ "@girs/gdesktopenums-3.0": "^3.0.0-3.2.4",
36
+ "@girs/gdkpixbuf-2.0": "^2.0.0-3.2.4",
37
+ "@girs/gio-2.0": "^2.78.0-3.2.4",
38
+ "@girs/gjs": "^3.2.4",
39
+ "@girs/gl-1.0": "^1.0.0-3.2.4",
40
+ "@girs/glib-2.0": "^2.78.0-3.2.4",
41
+ "@girs/gmodule-2.0": "^2.0.0-3.2.4",
42
+ "@girs/gobject-2.0": "^2.78.0-3.2.4",
43
+ "@girs/graphene-1.0": "^1.0.0-3.2.4",
44
+ "@girs/harfbuzz-0.0": "^8.2.1-3.2.4",
45
+ "@girs/json-1.0": "^1.7.1-3.2.4",
46
+ "@girs/meta-13": "^13.0.0-3.2.4",
47
+ "@girs/mtk-13": "^13.0.0-3.2.4",
48
+ "@girs/pango-1.0": "^1.51.0-3.2.4",
49
+ "@girs/pangocairo-1.0": "^1.0.0-3.2.4",
50
+ "@girs/xfixes-4.0": "^4.0.0-3.2.4",
51
+ "@girs/xlib-2.0": "^2.0.0-3.2.4"
52
+ },
53
+ "devDependencies": {
54
+ "typescript": "*"
55
+ },
56
+ "keywords": [
57
+ "Gir",
58
+ "TypeScript",
59
+ "types",
60
+ "GObject-Introspection",
61
+ "GJS",
62
+ "St-13"
63
+ ],
64
+ "author": "ts-for-gir",
65
+ "license": "MIT",
66
+ "repository": {
67
+ "type": "git",
68
+ "url": "git+https://github.com/gjsify/types.git"
69
+ },
70
+ "bugs": {
71
+ "url": "https://github.com/gjsify/ts-for-gir/issues"
72
+ },
73
+ "homepage": "https://github.com/gjsify/types/tree/main/st-13#readme"
74
+ }
@@ -0,0 +1,9 @@
1
+
2
+
3
+ declare module 'gi://St?version=13' {
4
+ import St13 from '@girs/st-13';
5
+ export default St13;
6
+ }
7
+
8
+
9
+
@@ -0,0 +1,13 @@
1
+
2
+
3
+ import St13 from '@girs/st-13';
4
+
5
+ declare global {
6
+ export interface GjsGiImports {
7
+ St: typeof St13;
8
+ }
9
+ }
10
+
11
+ export default GjsGiImports;
12
+
13
+
package/st-13.cjs ADDED
@@ -0,0 +1,11 @@
1
+
2
+
3
+ imports.gi.versions.St = '13'
4
+ const St = imports.gi.St;
5
+
6
+ module.exports = St;
7
+
8
+
9
+
10
+
11
+