@girs/libxml2-2.0 2.0.0-3.0.0-beta.12
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 +33 -0
- package/libxml2-2.0.cjs +9 -0
- package/libxml2-2.0.d.cts +105 -0
- package/libxml2-2.0.d.ts +110 -0
- package/libxml2-2.0.js +8 -0
- package/package.json +52 -0
- package/tsconfig.doc.json +19 -0
package/README.md
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
|
|
2
|
+
# libxml2-2.0
|
|
3
|
+
|
|
4
|
+
GJS TypeScript type definitions for libxml2-2.0, generated from library version 2.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gjs) v3.0.0-beta.12.
|
|
5
|
+
|
|
6
|
+
Powerful and feature complete XML handling library.
|
|
7
|
+
|
|
8
|
+
## Install
|
|
9
|
+
|
|
10
|
+
To use this type definitions, install them with NPM like this:
|
|
11
|
+
```bash
|
|
12
|
+
npm install @girs/libxml2-2.0
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Usage
|
|
16
|
+
|
|
17
|
+
You can import this package into your project like this:
|
|
18
|
+
```ts
|
|
19
|
+
import libxml2 from '@girs/libxml2-2.0';
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
Or if you prefer CommonJS, you can also use this:
|
|
23
|
+
```ts
|
|
24
|
+
const libxml2 = require('@girs/libxml2-2.0');
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
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:
|
|
28
|
+
|
|
29
|
+
```ts
|
|
30
|
+
import libxml2 from 'gi://libxml2?version=2.0';
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
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).
|
package/libxml2-2.0.cjs
ADDED
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
|
|
2
|
+
/*
|
|
3
|
+
* Type Definitions for Gjs (https://gjs.guide/)
|
|
4
|
+
*
|
|
5
|
+
* These type definitions are automatically generated, do not edit them by hand.
|
|
6
|
+
* If you found a bug fix it in `ts-for-gir` or create a bug report on https://github.com/gjsify/ts-for-gjs
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* libxml2-2.0
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
import type GObject from '@girs/gobject-2.0';
|
|
13
|
+
|
|
14
|
+
export function dummy(): void
|
|
15
|
+
export interface Node {
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export class Node {
|
|
19
|
+
|
|
20
|
+
// Own properties of libxml2-2.0.libxml2.Node
|
|
21
|
+
|
|
22
|
+
static name: string
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface NodePtr {
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export class NodePtr {
|
|
29
|
+
|
|
30
|
+
// Own properties of libxml2-2.0.libxml2.NodePtr
|
|
31
|
+
|
|
32
|
+
static name: string
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export interface Doc {
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export class Doc {
|
|
39
|
+
|
|
40
|
+
// Own properties of libxml2-2.0.libxml2.Doc
|
|
41
|
+
|
|
42
|
+
static name: string
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export interface DocPtr {
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export class DocPtr {
|
|
49
|
+
|
|
50
|
+
// Own properties of libxml2-2.0.libxml2.DocPtr
|
|
51
|
+
|
|
52
|
+
static name: string
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export interface NsPtr {
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export class NsPtr {
|
|
59
|
+
|
|
60
|
+
// Own properties of libxml2-2.0.libxml2.NsPtr
|
|
61
|
+
|
|
62
|
+
static name: string
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export interface Char {
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export class Char {
|
|
69
|
+
|
|
70
|
+
// Own properties of libxml2-2.0.libxml2.Char
|
|
71
|
+
|
|
72
|
+
static name: string
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export interface TextWriter {
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export class TextWriter {
|
|
79
|
+
|
|
80
|
+
// Own properties of libxml2-2.0.libxml2.TextWriter
|
|
81
|
+
|
|
82
|
+
static name: string
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export interface TextReader {
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export class TextReader {
|
|
89
|
+
|
|
90
|
+
// Own properties of libxml2-2.0.libxml2.TextReader
|
|
91
|
+
|
|
92
|
+
static name: string
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Name of the imported GIR library
|
|
97
|
+
* @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
|
|
98
|
+
*/
|
|
99
|
+
export const __name__: string
|
|
100
|
+
/**
|
|
101
|
+
* Version of the imported GIR library
|
|
102
|
+
* @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
|
|
103
|
+
*/
|
|
104
|
+
export const __version__: string
|
|
105
|
+
// END
|
package/libxml2-2.0.d.ts
ADDED
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
|
|
2
|
+
/*
|
|
3
|
+
* Type Definitions for Gjs (https://gjs.guide/)
|
|
4
|
+
*
|
|
5
|
+
* These type definitions are automatically generated, do not edit them by hand.
|
|
6
|
+
* If you found a bug fix it in `ts-for-gir` or create a bug report on https://github.com/gjsify/ts-for-gjs
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* libxml2-2.0
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
import type GObject from '@girs/gobject-2.0';
|
|
13
|
+
|
|
14
|
+
export namespace libxml2 {
|
|
15
|
+
|
|
16
|
+
function dummy(): void
|
|
17
|
+
interface Node {
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
class Node {
|
|
21
|
+
|
|
22
|
+
// Own properties of libxml2-2.0.libxml2.Node
|
|
23
|
+
|
|
24
|
+
static name: string
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
interface NodePtr {
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
class NodePtr {
|
|
31
|
+
|
|
32
|
+
// Own properties of libxml2-2.0.libxml2.NodePtr
|
|
33
|
+
|
|
34
|
+
static name: string
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
interface Doc {
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
class Doc {
|
|
41
|
+
|
|
42
|
+
// Own properties of libxml2-2.0.libxml2.Doc
|
|
43
|
+
|
|
44
|
+
static name: string
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
interface DocPtr {
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
class DocPtr {
|
|
51
|
+
|
|
52
|
+
// Own properties of libxml2-2.0.libxml2.DocPtr
|
|
53
|
+
|
|
54
|
+
static name: string
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
interface NsPtr {
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
class NsPtr {
|
|
61
|
+
|
|
62
|
+
// Own properties of libxml2-2.0.libxml2.NsPtr
|
|
63
|
+
|
|
64
|
+
static name: string
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
interface Char {
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
class Char {
|
|
71
|
+
|
|
72
|
+
// Own properties of libxml2-2.0.libxml2.Char
|
|
73
|
+
|
|
74
|
+
static name: string
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
interface TextWriter {
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
class TextWriter {
|
|
81
|
+
|
|
82
|
+
// Own properties of libxml2-2.0.libxml2.TextWriter
|
|
83
|
+
|
|
84
|
+
static name: string
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
interface TextReader {
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
class TextReader {
|
|
91
|
+
|
|
92
|
+
// Own properties of libxml2-2.0.libxml2.TextReader
|
|
93
|
+
|
|
94
|
+
static name: string
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Name of the imported GIR library
|
|
99
|
+
* @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
|
|
100
|
+
*/
|
|
101
|
+
const __name__: string
|
|
102
|
+
/**
|
|
103
|
+
* Version of the imported GIR library
|
|
104
|
+
* @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
|
|
105
|
+
*/
|
|
106
|
+
const __version__: string
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export default libxml2;
|
|
110
|
+
// END
|
package/libxml2-2.0.js
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@girs/libxml2-2.0",
|
|
3
|
+
"version": "2.0.0-3.0.0-beta.12",
|
|
4
|
+
"description": "GJS TypeScript type definitions for libxml2-2.0, generated from library version 2.0.0",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"module": "libxml2-2.0.js",
|
|
7
|
+
"main": "libxml2-2.0.js",
|
|
8
|
+
"typedoc": {
|
|
9
|
+
"entryPoint": "./libxml2-2.0.d.ts",
|
|
10
|
+
"readmeFile": "./README.md",
|
|
11
|
+
"displayName": "libxml2-2.0",
|
|
12
|
+
"tsconfig": "./tsconfig.doc.json"
|
|
13
|
+
},
|
|
14
|
+
"exports": {
|
|
15
|
+
".": {
|
|
16
|
+
"import": {
|
|
17
|
+
"types": "./libxml2-2.0.d.ts",
|
|
18
|
+
"default": "./libxml2-2.0.js"
|
|
19
|
+
},
|
|
20
|
+
"require": {
|
|
21
|
+
"types": "./libxml2-2.0.d.cts",
|
|
22
|
+
"default": "./libxml2-2.0.cjs"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"scripts": {
|
|
27
|
+
"test": "yarn test:esm && yarn test:cjs",
|
|
28
|
+
"test:esm": "tsc --noEmit libxml2-2.0.d.ts",
|
|
29
|
+
"test:cjs": "tsc --noEmit libxml2-2.0.d.cts"
|
|
30
|
+
},
|
|
31
|
+
"dependencies": {
|
|
32
|
+
"@girs/gobject-2.0": "^2.75.1-3.0.0-beta.12"
|
|
33
|
+
},
|
|
34
|
+
"devDependencies": {
|
|
35
|
+
"typescript": "^*"
|
|
36
|
+
},
|
|
37
|
+
"keywords": [
|
|
38
|
+
"Gir",
|
|
39
|
+
"TypeScript",
|
|
40
|
+
"libxml2-2.0"
|
|
41
|
+
],
|
|
42
|
+
"author": "ts-for-gir",
|
|
43
|
+
"license": "Apache-2.0",
|
|
44
|
+
"repository": {
|
|
45
|
+
"type": "git",
|
|
46
|
+
"url": "git+https://github.com/gjsify/ts-for-gir.git"
|
|
47
|
+
},
|
|
48
|
+
"bugs": {
|
|
49
|
+
"url": "https://github.com/gjsify/ts-for-gir/issues"
|
|
50
|
+
},
|
|
51
|
+
"homepage": "https://github.com/gjsify/ts-for-gir#readme"
|
|
52
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
// General settings for code interpretation
|
|
4
|
+
"target": "ESNext",
|
|
5
|
+
"module": "ESNext",
|
|
6
|
+
"experimentalDecorators": true,
|
|
7
|
+
"moduleResolution": "node",
|
|
8
|
+
"noEmit": true,
|
|
9
|
+
"noEmitOnError": false,
|
|
10
|
+
"baseUrl": "./",
|
|
11
|
+
"rootDir": ".",
|
|
12
|
+
// General settings for code generation
|
|
13
|
+
"removeComments": false,
|
|
14
|
+
"inlineSourceMap": false,
|
|
15
|
+
"inlineSources": false,
|
|
16
|
+
"newLine": "LF"
|
|
17
|
+
},
|
|
18
|
+
"include": ["./libxml2-2.0.d.ts"]
|
|
19
|
+
}
|