@girs/vips-8.0 8.14.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 ADDED
@@ -0,0 +1,31 @@
1
+
2
+ # Vips-8.0
3
+
4
+ GJS TypeScript type definitions for Vips-8.0, generated from library version 8.14.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/vips-8.0
11
+ ```
12
+
13
+ ## Usage
14
+
15
+ You can import this package into your project like this:
16
+ ```ts
17
+ import Vips from '@girs/vips-8.0';
18
+ ```
19
+
20
+ Or if you prefer CommonJS, you can also use this:
21
+ ```ts
22
+ const Vips = require('@girs/vips-8.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 Vips from 'gi://Vips?version=8.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/package.json ADDED
@@ -0,0 +1,53 @@
1
+ {
2
+ "name": "@girs/vips-8.0",
3
+ "version": "8.14.0-3.0.0-beta.12",
4
+ "description": "GJS TypeScript type definitions for Vips-8.0, generated from library version 8.14.0",
5
+ "type": "module",
6
+ "module": "vips-8.0.js",
7
+ "main": "vips-8.0.js",
8
+ "typedoc": {
9
+ "entryPoint": "./vips-8.0.d.ts",
10
+ "readmeFile": "./README.md",
11
+ "displayName": "Vips-8.0",
12
+ "tsconfig": "./tsconfig.doc.json"
13
+ },
14
+ "exports": {
15
+ ".": {
16
+ "import": {
17
+ "types": "./vips-8.0.d.ts",
18
+ "default": "./vips-8.0.js"
19
+ },
20
+ "require": {
21
+ "types": "./vips-8.0.d.cts",
22
+ "default": "./vips-8.0.cjs"
23
+ }
24
+ }
25
+ },
26
+ "scripts": {
27
+ "test": "yarn test:esm && yarn test:cjs",
28
+ "test:esm": "tsc --noEmit vips-8.0.d.ts",
29
+ "test:cjs": "tsc --noEmit vips-8.0.d.cts"
30
+ },
31
+ "dependencies": {
32
+ "@girs/glib-2.0": "^2.75.1-3.0.0-beta.12",
33
+ "@girs/gobject-2.0": "^2.75.1-3.0.0-beta.12"
34
+ },
35
+ "devDependencies": {
36
+ "typescript": "^*"
37
+ },
38
+ "keywords": [
39
+ "Gir",
40
+ "TypeScript",
41
+ "Vips-8.0"
42
+ ],
43
+ "author": "ts-for-gir",
44
+ "license": "Apache-2.0",
45
+ "repository": {
46
+ "type": "git",
47
+ "url": "git+https://github.com/gjsify/ts-for-gir.git"
48
+ },
49
+ "bugs": {
50
+ "url": "https://github.com/gjsify/ts-for-gir/issues"
51
+ },
52
+ "homepage": "https://github.com/gjsify/ts-for-gir#readme"
53
+ }
@@ -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": ["./vips-8.0.d.ts"]
19
+ }
package/vips-8.0.cjs ADDED
@@ -0,0 +1,9 @@
1
+
2
+
3
+ imports.gi.versions.Vips = '8.0'
4
+ const Vips = imports.gi.Vips;
5
+
6
+ module.exports = Vips;
7
+
8
+
9
+