@girs/cmbcatalogutils-3.0 3.0.0-4.0.0-beta.37
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/cmbcatalogutils-3.0-ambient.d.ts +9 -0
- package/cmbcatalogutils-3.0-ambient.js +2 -0
- package/cmbcatalogutils-3.0-import.d.ts +1 -0
- package/cmbcatalogutils-3.0-import.js +3 -0
- package/cmbcatalogutils-3.0.d.ts +73 -0
- package/cmbcatalogutils-3.0.js +5 -0
- package/index.d.ts +13 -0
- package/index.js +5 -0
- package/package.json +64 -0
- package/tsconfig.json +25 -0
- package/typedoc.json +7 -0
package/README.md
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
|
|
2
|
+
# CmbCatalogUtils-3.0
|
|
3
|
+
|
|
4
|
+

|
|
5
|
+

|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
GJS TypeScript type definitions for CmbCatalogUtils-3.0, generated from library version 3.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.37.
|
|
9
|
+
|
|
10
|
+
## Install
|
|
11
|
+
|
|
12
|
+
To use this type definitions, install them with NPM:
|
|
13
|
+
```bash
|
|
14
|
+
npm install @girs/cmbcatalogutils-3.0
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Usage
|
|
18
|
+
|
|
19
|
+
You can import this package into your project like this:
|
|
20
|
+
```ts
|
|
21
|
+
import CmbCatalogUtils from '@girs/cmbcatalogutils-3.0';
|
|
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/cmbcatalogutils-3.0` or `@girs/cmbcatalogutils-3.0/ambient` in your `tsconfig` or entry point Typescript file:
|
|
28
|
+
|
|
29
|
+
`index.ts`:
|
|
30
|
+
```ts
|
|
31
|
+
import '@girs/cmbcatalogutils-3.0'
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
`tsconfig.json`:
|
|
35
|
+
```json
|
|
36
|
+
{
|
|
37
|
+
"compilerOptions": {
|
|
38
|
+
...
|
|
39
|
+
},
|
|
40
|
+
"include": ["@girs/cmbcatalogutils-3.0"],
|
|
41
|
+
...
|
|
42
|
+
}
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
Now you can import the ambient module with TypeScript support:
|
|
46
|
+
|
|
47
|
+
```ts
|
|
48
|
+
import CmbCatalogUtils from 'gi://CmbCatalogUtils?version=3.0';
|
|
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/cmbcatalogutils-3.0` or `@girs/cmbcatalogutils-3.0/import` in your `tsconfig` or entry point Typescript file:
|
|
55
|
+
|
|
56
|
+
`index.ts`:
|
|
57
|
+
```ts
|
|
58
|
+
import '@girs/cmbcatalogutils-3.0'
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
`tsconfig.json`:
|
|
62
|
+
```json
|
|
63
|
+
{
|
|
64
|
+
"compilerOptions": {
|
|
65
|
+
...
|
|
66
|
+
},
|
|
67
|
+
"include": ["@girs/cmbcatalogutils-3.0"],
|
|
68
|
+
...
|
|
69
|
+
}
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
Now you have also type support for this, too:
|
|
73
|
+
|
|
74
|
+
```ts
|
|
75
|
+
const CmbCatalogUtils = imports.gi.CmbCatalogUtils;
|
|
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
|
+
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare module 'gi://CmbCatalogUtils?version=3.0' {
|
|
2
|
+
import CmbCatalogUtils30 from '@girs/cmbcatalogutils-3.0';
|
|
3
|
+
export default CmbCatalogUtils30;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
declare module 'gi://CmbCatalogUtils' {
|
|
7
|
+
import CmbCatalogUtils30 from 'gi://CmbCatalogUtils?version=3.0';
|
|
8
|
+
export default CmbCatalogUtils30;
|
|
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: "CmbCatalogUtils"
|
|
@@ -0,0 +1,73 @@
|
|
|
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
|
+
import '@girs/gjs';
|
|
11
|
+
|
|
12
|
+
// Module dependencies
|
|
13
|
+
import type Gtk from '@girs/gtk-3.0';
|
|
14
|
+
import type xlib from '@girs/xlib-2.0';
|
|
15
|
+
import type Gdk from '@girs/gdk-3.0';
|
|
16
|
+
import type cairo from 'cairo';
|
|
17
|
+
import type GObject from '@girs/gobject-2.0';
|
|
18
|
+
import type GLib from '@girs/glib-2.0';
|
|
19
|
+
import type Pango from '@girs/pango-1.0';
|
|
20
|
+
import type HarfBuzz from '@girs/harfbuzz-0.0';
|
|
21
|
+
import type freetype2 from '@girs/freetype2-2.0';
|
|
22
|
+
import type Gio from '@girs/gio-2.0';
|
|
23
|
+
import type GModule from '@girs/gmodule-2.0';
|
|
24
|
+
import type GdkPixbuf from '@girs/gdkpixbuf-2.0';
|
|
25
|
+
import type Atk from '@girs/atk-1.0';
|
|
26
|
+
|
|
27
|
+
export namespace CmbCatalogUtils {
|
|
28
|
+
/**
|
|
29
|
+
* CmbCatalogUtils-3.0
|
|
30
|
+
*/
|
|
31
|
+
|
|
32
|
+
function a11y_action_get_name(accessible: Atk.Object): string;
|
|
33
|
+
/**
|
|
34
|
+
* Return internal child
|
|
35
|
+
* @param buildable Object to check
|
|
36
|
+
* @param childname internal child
|
|
37
|
+
* @returns the internal child of the buildable object
|
|
38
|
+
*/
|
|
39
|
+
function buildable_get_internal_child<T = GObject.Object>(buildable: Gtk.Buildable, childname: string): T;
|
|
40
|
+
/**
|
|
41
|
+
* Return the list of properties declared in `name`
|
|
42
|
+
* @param name Class name
|
|
43
|
+
* @returns class properties
|
|
44
|
+
*/
|
|
45
|
+
function get_class_properties(name: string): GObject.ParamSpec[];
|
|
46
|
+
/**
|
|
47
|
+
* Return the list of properties declared in `name` iface
|
|
48
|
+
* @param name Interface type name
|
|
49
|
+
* @returns iface properties
|
|
50
|
+
*/
|
|
51
|
+
function get_iface_properties(name: string): GObject.ParamSpec[];
|
|
52
|
+
/**
|
|
53
|
+
* Return whether buildable implements add_child() or not
|
|
54
|
+
* @param buildable Object to check
|
|
55
|
+
*/
|
|
56
|
+
function implements_buildable_add_child(buildable: GObject.Object): boolean;
|
|
57
|
+
function pspec_enum_get_default_nick(gtype: GObject.GType, default_value: number): string;
|
|
58
|
+
function pspec_flags_get_default_nick(gtype: GObject.GType, default_value: number): string;
|
|
59
|
+
/**
|
|
60
|
+
* Name of the imported GIR library
|
|
61
|
+
* `see` https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
|
|
62
|
+
*/
|
|
63
|
+
const __name__: string;
|
|
64
|
+
/**
|
|
65
|
+
* Version of the imported GIR library
|
|
66
|
+
* `see` https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
|
|
67
|
+
*/
|
|
68
|
+
const __version__: string;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export default CmbCatalogUtils;
|
|
72
|
+
|
|
73
|
+
// 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 './cmbcatalogutils-3.0-ambient.d.ts';
|
|
11
|
+
|
|
12
|
+
import CmbCatalogUtils from './cmbcatalogutils-3.0.js';
|
|
13
|
+
export default CmbCatalogUtils;
|
package/index.js
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@girs/cmbcatalogutils-3.0",
|
|
3
|
+
"version": "3.0.0-4.0.0-beta.37",
|
|
4
|
+
"description": "GJS TypeScript type definitions for CmbCatalogUtils-3.0, generated from library version 3.0.0",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"module": "cmbcatalogutils-3.0.js",
|
|
7
|
+
"main": "cmbcatalogutils-3.0.js",
|
|
8
|
+
"exports": {
|
|
9
|
+
"./ambient": {
|
|
10
|
+
"types": "./cmbcatalogutils-3.0-ambient.d.ts",
|
|
11
|
+
"import": "./cmbcatalogutils-3.0-ambient.js",
|
|
12
|
+
"default": "./cmbcatalogutils-3.0-ambient.js"
|
|
13
|
+
},
|
|
14
|
+
"./import": {
|
|
15
|
+
"types": "./cmbcatalogutils-3.0-import.d.ts",
|
|
16
|
+
"import": "./cmbcatalogutils-3.0-import.js",
|
|
17
|
+
"default": "./cmbcatalogutils-3.0-import.js"
|
|
18
|
+
},
|
|
19
|
+
"./cmbcatalogutils-3.0": {
|
|
20
|
+
"types": "./cmbcatalogutils-3.0.d.ts",
|
|
21
|
+
"import": "./cmbcatalogutils-3.0.js",
|
|
22
|
+
"default": "./cmbcatalogutils-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/gjs": "4.0.0-beta.37",
|
|
35
|
+
"@girs/gtk-3.0": "3.24.49-4.0.0-beta.37",
|
|
36
|
+
"@girs/xlib-2.0": "2.0.0-4.0.0-beta.37",
|
|
37
|
+
"@girs/gdk-3.0": "3.24.49-4.0.0-beta.37",
|
|
38
|
+
"@girs/cairo-1.0": "1.0.0-4.0.0-beta.37",
|
|
39
|
+
"@girs/gobject-2.0": "2.86.0-4.0.0-beta.37",
|
|
40
|
+
"@girs/glib-2.0": "2.86.0-4.0.0-beta.37",
|
|
41
|
+
"@girs/pango-1.0": "1.57.0-4.0.0-beta.37",
|
|
42
|
+
"@girs/harfbuzz-0.0": "11.5.0-4.0.0-beta.37",
|
|
43
|
+
"@girs/freetype2-2.0": "2.0.0-4.0.0-beta.37",
|
|
44
|
+
"@girs/gio-2.0": "2.86.0-4.0.0-beta.37",
|
|
45
|
+
"@girs/gmodule-2.0": "2.0.0-4.0.0-beta.37",
|
|
46
|
+
"@girs/gdkpixbuf-2.0": "2.0.0-4.0.0-beta.37",
|
|
47
|
+
"@girs/atk-1.0": "2.58.0-4.0.0-beta.37" },
|
|
48
|
+
"devDependencies": {
|
|
49
|
+
"typescript": "*"
|
|
50
|
+
},
|
|
51
|
+
"keywords": ["Gir", "TypeScript", "types", "GObject-Introspection", "GJS", "CmbCatalogUtils-3.0"],
|
|
52
|
+
"author": "ts-for-gir",
|
|
53
|
+
"license": "MIT",
|
|
54
|
+
"repository": {
|
|
55
|
+
"type": "git",
|
|
56
|
+
"url": "git+https://github.com/gjsify/types.git"
|
|
57
|
+
},
|
|
58
|
+
"bugs": {
|
|
59
|
+
"url": "https://github.com/gjsify/ts-for-gir/issues"
|
|
60
|
+
},
|
|
61
|
+
"homepage": "https://github.com/gjsify/types/tree/main/cmbcatalogutils-3.0#readme"
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
// Show diagnostics
|
|
20
|
+
"diagnostics": true
|
|
21
|
+
},
|
|
22
|
+
"include": ["./cmbcatalogutils-3.0.d.ts"]
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
|