@girs/cambalacheprivate-3.0 3.0.0-4.0.0-beta.11
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 +86 -0
- package/cambalacheprivate-3.0-ambient.d.ts +9 -0
- package/cambalacheprivate-3.0-ambient.js +2 -0
- package/cambalacheprivate-3.0-import.d.ts +1 -0
- package/cambalacheprivate-3.0-import.js +3 -0
- package/cambalacheprivate-3.0.d.ts +56 -0
- package/cambalacheprivate-3.0.js +5 -0
- package/index.d.ts +13 -0
- package/index.js +5 -0
- package/package.json +70 -0
- package/tsconfig.json +23 -0
- package/typedoc.json +7 -0
package/README.md
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
|
|
2
|
+
# CambalachePrivate-3.0
|
|
3
|
+
|
|
4
|
+

|
|
5
|
+

|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
GJS TypeScript type definitions for CambalachePrivate-3.0, generated from library version 3.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.11.
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## Install
|
|
12
|
+
|
|
13
|
+
To use this type definitions, install them with NPM:
|
|
14
|
+
```bash
|
|
15
|
+
npm install @girs/cambalacheprivate-3.0
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Usage
|
|
19
|
+
|
|
20
|
+
You can import this package into your project like this:
|
|
21
|
+
```ts
|
|
22
|
+
import CambalachePrivate from '@girs/cambalacheprivate-3.0';
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
### Ambient Modules
|
|
26
|
+
|
|
27
|
+
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.
|
|
28
|
+
For this you need to include `@girs/cambalacheprivate-3.0` or `@girs/cambalacheprivate-3.0/ambient` in your `tsconfig` or entry point Typescript file:
|
|
29
|
+
|
|
30
|
+
`index.ts`:
|
|
31
|
+
```ts
|
|
32
|
+
import '@girs/cambalacheprivate-3.0'
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
`tsconfig.json`:
|
|
36
|
+
```json
|
|
37
|
+
{
|
|
38
|
+
"compilerOptions": {
|
|
39
|
+
...
|
|
40
|
+
},
|
|
41
|
+
"include": ["@girs/cambalacheprivate-3.0"],
|
|
42
|
+
...
|
|
43
|
+
}
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
Now you can import the ambient module with TypeScript support:
|
|
47
|
+
|
|
48
|
+
```ts
|
|
49
|
+
import CambalachePrivate from 'gi://CambalachePrivate?version=3.0';
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
### Global import
|
|
53
|
+
|
|
54
|
+
You can also import the module with Typescript support using the global `imports.gi` object of GJS.
|
|
55
|
+
For this you need to include `@girs/cambalacheprivate-3.0` or `@girs/cambalacheprivate-3.0/import` in your `tsconfig` or entry point Typescript file:
|
|
56
|
+
|
|
57
|
+
`index.ts`:
|
|
58
|
+
```ts
|
|
59
|
+
import '@girs/cambalacheprivate-3.0'
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
`tsconfig.json`:
|
|
63
|
+
```json
|
|
64
|
+
{
|
|
65
|
+
"compilerOptions": {
|
|
66
|
+
...
|
|
67
|
+
},
|
|
68
|
+
"include": ["@girs/cambalacheprivate-3.0"],
|
|
69
|
+
...
|
|
70
|
+
}
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
Now you have also type support for this, too:
|
|
74
|
+
|
|
75
|
+
```ts
|
|
76
|
+
const CambalachePrivate = imports.gi.CambalachePrivate;
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
### Bundle
|
|
80
|
+
|
|
81
|
+
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).
|
|
82
|
+
|
|
83
|
+
## Other packages
|
|
84
|
+
|
|
85
|
+
All existing pre-generated packages can be found on [gjsify/types](https://github.com/gjsify/types).
|
|
86
|
+
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare module 'gi://CambalachePrivate?version=3.0' {
|
|
2
|
+
import CambalachePrivate30 from '@girs/cambalacheprivate-3.0';
|
|
3
|
+
export default CambalachePrivate30;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
declare module 'gi://CambalachePrivate' {
|
|
7
|
+
import CambalachePrivate30 from 'gi://CambalachePrivate?version=3.0';
|
|
8
|
+
export default CambalachePrivate30;
|
|
9
|
+
}
|
|
@@ -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: "CambalachePrivate"
|
|
@@ -0,0 +1,56 @@
|
|
|
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
|
+
* The based EJS template file is used for the generated .d.ts file of each GIR module like Gtk-4.0, GObject-2.0, ...
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
// Module dependencies
|
|
11
|
+
import type Gtk from '@girs/gtk-3.0';
|
|
12
|
+
import type xlib from '@girs/xlib-2.0';
|
|
13
|
+
import type Gdk from '@girs/gdk-3.0';
|
|
14
|
+
import type cairo from '@girs/cairo-1.0';
|
|
15
|
+
import type GObject from '@girs/gobject-2.0';
|
|
16
|
+
import type GLib from '@girs/glib-2.0';
|
|
17
|
+
import type Pango from '@girs/pango-1.0';
|
|
18
|
+
import type HarfBuzz from '@girs/harfbuzz-0.0';
|
|
19
|
+
import type freetype2 from '@girs/freetype2-2.0';
|
|
20
|
+
import type Gio from '@girs/gio-2.0';
|
|
21
|
+
import type GModule from '@girs/gmodule-2.0';
|
|
22
|
+
import type GdkPixbuf from '@girs/gdkpixbuf-2.0';
|
|
23
|
+
import type Atk from '@girs/atk-1.0';
|
|
24
|
+
|
|
25
|
+
export namespace CambalachePrivate {
|
|
26
|
+
/**
|
|
27
|
+
* CambalachePrivate-3.0
|
|
28
|
+
*/
|
|
29
|
+
|
|
30
|
+
function builder_init(): void;
|
|
31
|
+
function container_child_set_property_from_string(
|
|
32
|
+
container: Gtk.Container,
|
|
33
|
+
child: Gtk.Widget,
|
|
34
|
+
property_name: string,
|
|
35
|
+
value?: string | null,
|
|
36
|
+
): void;
|
|
37
|
+
function object_set_property_from_string(
|
|
38
|
+
object: GObject.Object,
|
|
39
|
+
property_name: string,
|
|
40
|
+
value?: string | null,
|
|
41
|
+
): void;
|
|
42
|
+
/**
|
|
43
|
+
* Name of the imported GIR library
|
|
44
|
+
* `see` https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
|
|
45
|
+
*/
|
|
46
|
+
const __name__: string;
|
|
47
|
+
/**
|
|
48
|
+
* Version of the imported GIR library
|
|
49
|
+
* `see` https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
|
|
50
|
+
*/
|
|
51
|
+
const __version__: string;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export default CambalachePrivate;
|
|
55
|
+
|
|
56
|
+
// END
|
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 './cambalacheprivate-3.0-ambient.d.ts';
|
|
11
|
+
|
|
12
|
+
import CambalachePrivate from './cambalacheprivate-3.0.js';
|
|
13
|
+
export default CambalachePrivate;
|
package/index.js
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@girs/cambalacheprivate-3.0",
|
|
3
|
+
"version": "3.0.0-4.0.0-beta.11",
|
|
4
|
+
"description": "GJS TypeScript type definitions for CambalachePrivate-3.0, generated from library version 3.0.0",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"module": "cambalacheprivate-3.0.js",
|
|
7
|
+
"main": "cambalacheprivate-3.0.js",
|
|
8
|
+
"exports": {
|
|
9
|
+
"./ambient": {
|
|
10
|
+
"types": "./cambalacheprivate-3.0-ambient.d.ts",
|
|
11
|
+
"import": "./cambalacheprivate-3.0-ambient.js",
|
|
12
|
+
"default": "./cambalacheprivate-3.0-ambient.js"
|
|
13
|
+
},
|
|
14
|
+
"./import": {
|
|
15
|
+
"types": "./cambalacheprivate-3.0-import.d.ts",
|
|
16
|
+
"import": "./cambalacheprivate-3.0-import.js",
|
|
17
|
+
"default": "./cambalacheprivate-3.0-import.js"
|
|
18
|
+
},
|
|
19
|
+
"./cambalacheprivate-3.0": {
|
|
20
|
+
"types": "./cambalacheprivate-3.0.d.ts",
|
|
21
|
+
"import": "./cambalacheprivate-3.0.js",
|
|
22
|
+
"default": "./cambalacheprivate-3.0.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/atk-1.0": "^2.52.0-4.0.0-beta.11",
|
|
35
|
+
"@girs/cairo-1.0": "^1.0.0-4.0.0-beta.11",
|
|
36
|
+
"@girs/freetype2-2.0": "^2.0.0-4.0.0-beta.11",
|
|
37
|
+
"@girs/gdk-3.0": "^3.24.43-4.0.0-beta.11",
|
|
38
|
+
"@girs/gdkpixbuf-2.0": "^2.0.0-4.0.0-beta.11",
|
|
39
|
+
"@girs/gio-2.0": "^2.80.3-4.0.0-beta.11",
|
|
40
|
+
"@girs/gjs": "^4.0.0-beta.11",
|
|
41
|
+
"@girs/glib-2.0": "^2.80.3-4.0.0-beta.11",
|
|
42
|
+
"@girs/gmodule-2.0": "^2.0.0-4.0.0-beta.11",
|
|
43
|
+
"@girs/gobject-2.0": "^2.80.3-4.0.0-beta.11",
|
|
44
|
+
"@girs/gtk-3.0": "^3.24.43-4.0.0-beta.11",
|
|
45
|
+
"@girs/harfbuzz-0.0": "^8.4.0-4.0.0-beta.11",
|
|
46
|
+
"@girs/pango-1.0": "^1.54.0-4.0.0-beta.11",
|
|
47
|
+
"@girs/xlib-2.0": "^2.0.0-4.0.0-beta.11"
|
|
48
|
+
},
|
|
49
|
+
"devDependencies": {
|
|
50
|
+
"typescript": "*"
|
|
51
|
+
},
|
|
52
|
+
"keywords": [
|
|
53
|
+
"Gir",
|
|
54
|
+
"TypeScript",
|
|
55
|
+
"types",
|
|
56
|
+
"GObject-Introspection",
|
|
57
|
+
"GJS",
|
|
58
|
+
"CambalachePrivate-3.0"
|
|
59
|
+
],
|
|
60
|
+
"author": "ts-for-gir",
|
|
61
|
+
"license": "MIT",
|
|
62
|
+
"repository": {
|
|
63
|
+
"type": "git",
|
|
64
|
+
"url": "git+https://github.com/gjsify/ts-for-gir.git"
|
|
65
|
+
},
|
|
66
|
+
"bugs": {
|
|
67
|
+
"url": "https://github.com/gjsify/ts-for-gir/issues"
|
|
68
|
+
},
|
|
69
|
+
"homepage": "https://github.com/gjsify/types/tree/main/cambalacheprivate-3.0#readme"
|
|
70
|
+
}
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
// General settings for code interpretation
|
|
4
|
+
"target": "ESNext",
|
|
5
|
+
"module": "NodeNext",
|
|
6
|
+
"lib": ["ESNext"],
|
|
7
|
+
"types": [],
|
|
8
|
+
"experimentalDecorators": true,
|
|
9
|
+
"moduleResolution": "NodeNext",
|
|
10
|
+
"noEmit": true,
|
|
11
|
+
"noEmitOnError": false,
|
|
12
|
+
"baseUrl": "./",
|
|
13
|
+
"rootDir": ".",
|
|
14
|
+
// General settings for code generation
|
|
15
|
+
"removeComments": false,
|
|
16
|
+
"inlineSourceMap": false,
|
|
17
|
+
"inlineSources": false,
|
|
18
|
+
"newLine": "LF"
|
|
19
|
+
},
|
|
20
|
+
"include": ["./cambalacheprivate-3.0.d.ts"]
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
|