@girs/gl-1.0 1.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 +31 -0
- package/gl-1.0.cjs +9 -0
- package/gl-1.0.d.cts +155 -0
- package/gl-1.0.d.ts +160 -0
- package/gl-1.0.js +8 -0
- package/package.json +52 -0
- package/tsconfig.doc.json +19 -0
package/README.md
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
|
|
2
|
+
# GL-1.0
|
|
3
|
+
|
|
4
|
+
GJS TypeScript type definitions for GL-1.0, generated from library version 1.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gjs) v3.0.0-beta.12.
|
|
5
|
+
|
|
6
|
+
## Install
|
|
7
|
+
|
|
8
|
+
To use this type definitions, install them with NPM like this:
|
|
9
|
+
```bash
|
|
10
|
+
npm install @girs/gl-1.0
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
You can import this package into your project like this:
|
|
16
|
+
```ts
|
|
17
|
+
import GL from '@girs/gl-1.0';
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Or if you prefer CommonJS, you can also use this:
|
|
21
|
+
```ts
|
|
22
|
+
const GL = require('@girs/gl-1.0');
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
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:
|
|
26
|
+
|
|
27
|
+
```ts
|
|
28
|
+
import GL from 'gi://GL?version=1.0';
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
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/gl-1.0.cjs
ADDED
package/gl-1.0.d.cts
ADDED
|
@@ -0,0 +1,155 @@
|
|
|
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
|
+
* GL-1.0
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
import type GObject from '@girs/gobject-2.0';
|
|
13
|
+
|
|
14
|
+
export function InitNames(): void
|
|
15
|
+
export interface bitfield {
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export class bitfield {
|
|
19
|
+
|
|
20
|
+
// Own properties of GL-1.0.GL.bitfield
|
|
21
|
+
|
|
22
|
+
static name: string
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface charARB {
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export class charARB {
|
|
29
|
+
|
|
30
|
+
// Own properties of GL-1.0.GL.charARB
|
|
31
|
+
|
|
32
|
+
static name: string
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export interface clampf {
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export class clampf {
|
|
39
|
+
|
|
40
|
+
// Own properties of GL-1.0.GL.clampf
|
|
41
|
+
|
|
42
|
+
static name: string
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export interface boolean_ {
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export class boolean_ {
|
|
49
|
+
|
|
50
|
+
// Own properties of GL-1.0.GL.boolean
|
|
51
|
+
|
|
52
|
+
static name: string
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export interface enum_ {
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export class enum_ {
|
|
59
|
+
|
|
60
|
+
// Own properties of GL-1.0.GL.enum
|
|
61
|
+
|
|
62
|
+
static name: string
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export interface float {
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export class float {
|
|
69
|
+
|
|
70
|
+
// Own properties of GL-1.0.GL.float
|
|
71
|
+
|
|
72
|
+
static name: string
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export interface handleARB {
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export class handleARB {
|
|
79
|
+
|
|
80
|
+
// Own properties of GL-1.0.GL.handleARB
|
|
81
|
+
|
|
82
|
+
static name: string
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export interface int {
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export class int {
|
|
89
|
+
|
|
90
|
+
// Own properties of GL-1.0.GL.int
|
|
91
|
+
|
|
92
|
+
static name: string
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export interface intptr {
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export class intptr {
|
|
99
|
+
|
|
100
|
+
// Own properties of GL-1.0.GL.intptr
|
|
101
|
+
|
|
102
|
+
static name: string
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export interface sizei {
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export class sizei {
|
|
109
|
+
|
|
110
|
+
// Own properties of GL-1.0.GL.sizei
|
|
111
|
+
|
|
112
|
+
static name: string
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export interface sizeiptr {
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export class sizeiptr {
|
|
119
|
+
|
|
120
|
+
// Own properties of GL-1.0.GL.sizeiptr
|
|
121
|
+
|
|
122
|
+
static name: string
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export interface uint {
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export class uint {
|
|
129
|
+
|
|
130
|
+
// Own properties of GL-1.0.GL.uint
|
|
131
|
+
|
|
132
|
+
static name: string
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export interface void_ {
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
export class void_ {
|
|
139
|
+
|
|
140
|
+
// Own properties of GL-1.0.GL.void
|
|
141
|
+
|
|
142
|
+
static name: string
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* Name of the imported GIR library
|
|
147
|
+
* @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
|
|
148
|
+
*/
|
|
149
|
+
export const __name__: string
|
|
150
|
+
/**
|
|
151
|
+
* Version of the imported GIR library
|
|
152
|
+
* @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
|
|
153
|
+
*/
|
|
154
|
+
export const __version__: string
|
|
155
|
+
// END
|
package/gl-1.0.d.ts
ADDED
|
@@ -0,0 +1,160 @@
|
|
|
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
|
+
* GL-1.0
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
import type GObject from '@girs/gobject-2.0';
|
|
13
|
+
|
|
14
|
+
export namespace GL {
|
|
15
|
+
|
|
16
|
+
function InitNames(): void
|
|
17
|
+
interface bitfield {
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
class bitfield {
|
|
21
|
+
|
|
22
|
+
// Own properties of GL-1.0.GL.bitfield
|
|
23
|
+
|
|
24
|
+
static name: string
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
interface charARB {
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
class charARB {
|
|
31
|
+
|
|
32
|
+
// Own properties of GL-1.0.GL.charARB
|
|
33
|
+
|
|
34
|
+
static name: string
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
interface clampf {
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
class clampf {
|
|
41
|
+
|
|
42
|
+
// Own properties of GL-1.0.GL.clampf
|
|
43
|
+
|
|
44
|
+
static name: string
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
interface boolean_ {
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
class boolean_ {
|
|
51
|
+
|
|
52
|
+
// Own properties of GL-1.0.GL.boolean
|
|
53
|
+
|
|
54
|
+
static name: string
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
interface enum_ {
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
class enum_ {
|
|
61
|
+
|
|
62
|
+
// Own properties of GL-1.0.GL.enum
|
|
63
|
+
|
|
64
|
+
static name: string
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
interface float {
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
class float {
|
|
71
|
+
|
|
72
|
+
// Own properties of GL-1.0.GL.float
|
|
73
|
+
|
|
74
|
+
static name: string
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
interface handleARB {
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
class handleARB {
|
|
81
|
+
|
|
82
|
+
// Own properties of GL-1.0.GL.handleARB
|
|
83
|
+
|
|
84
|
+
static name: string
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
interface int {
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
class int {
|
|
91
|
+
|
|
92
|
+
// Own properties of GL-1.0.GL.int
|
|
93
|
+
|
|
94
|
+
static name: string
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
interface intptr {
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
class intptr {
|
|
101
|
+
|
|
102
|
+
// Own properties of GL-1.0.GL.intptr
|
|
103
|
+
|
|
104
|
+
static name: string
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
interface sizei {
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
class sizei {
|
|
111
|
+
|
|
112
|
+
// Own properties of GL-1.0.GL.sizei
|
|
113
|
+
|
|
114
|
+
static name: string
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
interface sizeiptr {
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
class sizeiptr {
|
|
121
|
+
|
|
122
|
+
// Own properties of GL-1.0.GL.sizeiptr
|
|
123
|
+
|
|
124
|
+
static name: string
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
interface uint {
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
class uint {
|
|
131
|
+
|
|
132
|
+
// Own properties of GL-1.0.GL.uint
|
|
133
|
+
|
|
134
|
+
static name: string
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
interface void_ {
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
class void_ {
|
|
141
|
+
|
|
142
|
+
// Own properties of GL-1.0.GL.void
|
|
143
|
+
|
|
144
|
+
static name: string
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* Name of the imported GIR library
|
|
149
|
+
* @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
|
|
150
|
+
*/
|
|
151
|
+
const __name__: string
|
|
152
|
+
/**
|
|
153
|
+
* Version of the imported GIR library
|
|
154
|
+
* @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
|
|
155
|
+
*/
|
|
156
|
+
const __version__: string
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
export default GL;
|
|
160
|
+
// END
|
package/gl-1.0.js
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@girs/gl-1.0",
|
|
3
|
+
"version": "1.0.0-3.0.0-beta.12",
|
|
4
|
+
"description": "GJS TypeScript type definitions for GL-1.0, generated from library version 1.0.0",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"module": "gl-1.0.js",
|
|
7
|
+
"main": "gl-1.0.js",
|
|
8
|
+
"typedoc": {
|
|
9
|
+
"entryPoint": "./gl-1.0.d.ts",
|
|
10
|
+
"readmeFile": "./README.md",
|
|
11
|
+
"displayName": "GL-1.0",
|
|
12
|
+
"tsconfig": "./tsconfig.doc.json"
|
|
13
|
+
},
|
|
14
|
+
"exports": {
|
|
15
|
+
".": {
|
|
16
|
+
"import": {
|
|
17
|
+
"types": "./gl-1.0.d.ts",
|
|
18
|
+
"default": "./gl-1.0.js"
|
|
19
|
+
},
|
|
20
|
+
"require": {
|
|
21
|
+
"types": "./gl-1.0.d.cts",
|
|
22
|
+
"default": "./gl-1.0.cjs"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"scripts": {
|
|
27
|
+
"test": "yarn test:esm && yarn test:cjs",
|
|
28
|
+
"test:esm": "tsc --noEmit gl-1.0.d.ts",
|
|
29
|
+
"test:cjs": "tsc --noEmit gl-1.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
|
+
"GL-1.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": ["./gl-1.0.d.ts"]
|
|
19
|
+
}
|