@girs/gck-2 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/gck-2)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for Gck-2, generated from library version 4.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.0.4.
9
-
10
- GLib wrapper library for PKCS#11
8
+ GJS TypeScript type definitions for Gck-2, 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 Gck from '@girs/gck-2';
24
22
  ```
25
23
 
26
- Or if you prefer CommonJS, you can also use this:
27
- ```ts
28
- const Gck = require('@girs/gck-2');
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://Gck?version=2' {
4
3
  import Gck2 from '@girs/gck-2';
5
4
  export default Gck2;
6
5
  }
7
6
 
7
+ declare module 'gi://Gck' {
8
+ import Gck2 from 'gi://Gck?version=2';
9
+ export default Gck2;
10
+ }
8
11
 
9
12
 
@@ -0,0 +1,2 @@
1
+ export {}
2
+
package/gck-2-import.d.ts CHANGED
@@ -1,6 +1,5 @@
1
1
 
2
-
3
- import Gck2 from '@girs/gck-2';
2
+ import type Gck2 from '@girs/gck-2';
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
+