@girs/gcr-4 4.0.0-3.0.4 → 4.0.4

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 CHANGED
@@ -5,9 +5,7 @@
5
5
  ![downloads/week](https://img.shields.io/npm/dw/@girs/gcr-4)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for Gcr-4, generated from library version 4.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.0.4.
9
-
10
- A library for bits of crypto UI and parsing
8
+ GJS TypeScript type definitions for Gcr-4, generated from library version 4.4.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.4.
11
9
 
12
10
  ## Install
13
11
 
@@ -23,11 +21,6 @@ You can import this package into your project like this:
23
21
  import Gcr from '@girs/gcr-4';
24
22
  ```
25
23
 
26
- Or if you prefer CommonJS, you can also use this:
27
- ```ts
28
- const Gcr = require('@girs/gcr-4');
29
- ```
30
-
31
24
  ### Ambient Modules
32
25
 
33
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.
@@ -1,9 +1,12 @@
1
1
 
2
-
3
2
  declare module 'gi://Gcr?version=4' {
4
3
  import Gcr4 from '@girs/gcr-4';
5
4
  export default Gcr4;
6
5
  }
7
6
 
7
+ declare module 'gi://Gcr' {
8
+ import Gcr4 from 'gi://Gcr?version=4';
9
+ export default Gcr4;
10
+ }
8
11
 
9
12
 
@@ -0,0 +1,2 @@
1
+ export {}
2
+
package/gcr-4-import.d.ts CHANGED
@@ -1,6 +1,5 @@
1
1
 
2
-
3
- import Gcr4 from '@girs/gcr-4';
2
+ import type Gcr4 from '@girs/gcr-4';
4
3
 
5
4
  declare global {
6
5
  export interface GjsGiImports {
@@ -0,0 +1,3 @@
1
+ const gi = globalThis.imports?.gi || {};
2
+ export default gi;
3
+