@girs/msg-0 0.0.0-4.0.0-beta.33 → 0.0.0-4.0.0-beta.35

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,7 +5,7 @@
5
5
  ![downloads/week](https://img.shields.io/npm/dw/@girs/msg-0)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for Msg-0, generated from library version 0.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.33.
8
+ GJS TypeScript type definitions for Msg-0, generated from library version 0.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.35.
9
9
 
10
10
  ## Install
11
11
 
package/msg-0-import.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import Msg0 from '@girs/msg-0';
1
+ import type Msg0 from '@girs/msg-0';
2
2
 
3
3
  declare global {
4
4
  export interface GjsGiImports {
package/msg-0.d.ts CHANGED
@@ -2948,6 +2948,32 @@ export namespace Msg {
2948
2948
  }
2949
2949
 
2950
2950
  namespace Authorizer {
2951
+ /**
2952
+ * Interface for implementing Authorizer.
2953
+ * Contains only the virtual methods that need to be implemented.
2954
+ */
2955
+ interface Interface {
2956
+ // Virtual methods
2957
+
2958
+ /**
2959
+ * Adds the necessary authorization to `message`. The type of `message`
2960
+ * can be DELETE, GET and POST.
2961
+ *
2962
+ * This method modifies `message` in place and is thread safe.
2963
+ * @param message A #SoupMessage.
2964
+ */
2965
+ vfunc_process_request(message: Soup.Message): void;
2966
+ /**
2967
+ * Synchronously forces `iface` to refresh any authorization tokens
2968
+ * held by it. See msg_authorizer_refresh_authorization_async() for the
2969
+ * asynchronous version of this call.
2970
+ *
2971
+ * This method is thread safe.
2972
+ * @param cancellable An optional #GCancellable object, or %NULL.
2973
+ */
2974
+ vfunc_refresh_authorization(cancellable?: Gio.Cancellable | null): boolean;
2975
+ }
2976
+
2951
2977
  // Constructor properties interface
2952
2978
 
2953
2979
  interface ConstructorProps extends GObject.Object.ConstructorProps {}
@@ -2957,7 +2983,7 @@ export namespace Msg {
2957
2983
  $gtype: GObject.GType<Authorizer>;
2958
2984
  prototype: Authorizer;
2959
2985
  }
2960
- interface Authorizer extends GObject.Object {
2986
+ interface Authorizer extends GObject.Object, Authorizer.Interface {
2961
2987
  // Methods
2962
2988
 
2963
2989
  /**
@@ -2978,26 +3004,6 @@ export namespace Msg {
2978
3004
  * @returns %TRUE if the authorizer now has a valid token.
2979
3005
  */
2980
3006
  refresh_authorization(cancellable?: Gio.Cancellable | null): boolean;
2981
-
2982
- // Virtual methods
2983
-
2984
- /**
2985
- * Adds the necessary authorization to `message`. The type of `message`
2986
- * can be DELETE, GET and POST.
2987
- *
2988
- * This method modifies `message` in place and is thread safe.
2989
- * @param message A #SoupMessage.
2990
- */
2991
- vfunc_process_request(message: Soup.Message): void;
2992
- /**
2993
- * Synchronously forces `iface` to refresh any authorization tokens
2994
- * held by it. See msg_authorizer_refresh_authorization_async() for the
2995
- * asynchronous version of this call.
2996
- *
2997
- * This method is thread safe.
2998
- * @param cancellable An optional #GCancellable object, or %NULL.
2999
- */
3000
- vfunc_refresh_authorization(cancellable?: Gio.Cancellable | null): boolean;
3001
3007
  }
3002
3008
 
3003
3009
  export const Authorizer: AuthorizerNamespace & {
package/package.json CHANGED
@@ -1,64 +1,58 @@
1
1
  {
2
- "name": "@girs/msg-0",
3
- "version": "0.0.0-4.0.0-beta.33",
4
- "description": "GJS TypeScript type definitions for Msg-0, generated from library version 0.0.0",
5
- "type": "module",
6
- "module": "msg-0.js",
7
- "main": "msg-0.js",
8
- "exports": {
9
- "./ambient": {
10
- "types": "./msg-0-ambient.d.ts",
11
- "import": "./msg-0-ambient.js",
12
- "default": "./msg-0-ambient.js"
2
+ "name": "@girs/msg-0",
3
+ "version": "0.0.0-4.0.0-beta.35",
4
+ "description": "GJS TypeScript type definitions for Msg-0, generated from library version 0.0.0",
5
+ "type": "module",
6
+ "module": "msg-0.js",
7
+ "main": "msg-0.js",
8
+ "exports": {
9
+ "./ambient": {
10
+ "types": "./msg-0-ambient.d.ts",
11
+ "import": "./msg-0-ambient.js",
12
+ "default": "./msg-0-ambient.js"
13
+ },
14
+ "./import": {
15
+ "types": "./msg-0-import.d.ts",
16
+ "import": "./msg-0-import.js",
17
+ "default": "./msg-0-import.js"
18
+ },
19
+ "./msg-0": {
20
+ "types": "./msg-0.d.ts",
21
+ "import": "./msg-0.js",
22
+ "default": "./msg-0.js"
23
+ },
24
+ ".": {
25
+ "types": "./index.d.ts",
26
+ "import": "./index.js",
27
+ "default": "./index.js"
28
+ }
13
29
  },
14
- "./import": {
15
- "types": "./msg-0-import.d.ts",
16
- "import": "./msg-0-import.js",
17
- "default": "./msg-0-import.js"
30
+ "scripts": {
31
+ "test": "tsc --project tsconfig.json"
18
32
  },
19
- "./msg-0": {
20
- "types": "./msg-0.d.ts",
21
- "import": "./msg-0.js",
22
- "default": "./msg-0.js"
33
+ "dependencies": {
34
+ "@girs/gjs": "4.0.0-beta.35",
35
+ "@girs/soup-3.0": "3.6.5-4.0.0-beta.35",
36
+ "@girs/gio-2.0": "2.0.0-4.0.0-beta.35",
37
+ "@girs/gobject-2.0": "2.0.0-4.0.0-beta.35",
38
+ "@girs/glib-2.0": "2.84.4-4.0.0-beta.35",
39
+ "@girs/gmodule-2.0": "2.0.0-4.0.0-beta.35",
40
+ "@girs/json-1.0": "1.10.7-4.0.0-beta.35",
41
+ "@girs/goa-1.0": "3.52.0-4.0.0-beta.35" },
42
+ "devDependencies": {
43
+ "typescript": "*"
23
44
  },
24
- ".": {
25
- "types": "./index.d.ts",
26
- "import": "./index.js",
27
- "default": "./index.js"
28
- }
29
- },
30
- "scripts": {
31
- "test": "tsc --project tsconfig.json"
32
- },
33
- "dependencies": {
34
- "@girs/gio-2.0": "^2.84.4-4.0.0-beta.33",
35
- "@girs/gjs": "^4.0.0-beta.27",
36
- "@girs/glib-2.0": "^2.84.4-4.0.0-beta.33",
37
- "@girs/gmodule-2.0": "^2.0.0-4.0.0-beta.27",
38
- "@girs/goa-1.0": "^3.52.0-4.0.0-beta.27",
39
- "@girs/gobject-2.0": "^2.84.4-4.0.0-beta.33",
40
- "@girs/json-1.0": "^1.10.7-4.0.0-beta.33",
41
- "@girs/soup-3.0": "^3.6.5-4.0.0-beta.33"
42
- },
43
- "devDependencies": {
44
- "typescript": "*"
45
- },
46
- "keywords": [
47
- "Gir",
48
- "TypeScript",
49
- "types",
50
- "GObject-Introspection",
51
- "GJS",
52
- "Msg-0"
53
- ],
54
- "author": "ts-for-gir",
55
- "license": "MIT",
56
- "repository": {
57
- "type": "git",
58
- "url": "git+https://github.com/gjsify/ts-for-gir.git"
59
- },
60
- "bugs": {
61
- "url": "https://github.com/gjsify/ts-for-gir/issues"
62
- },
63
- "homepage": "https://github.com/gjsify/types/tree/main/msg-0#readme"
64
- }
45
+ "keywords": ["Gir", "TypeScript", "types", "GObject-Introspection", "GJS", "Msg-0"],
46
+ "author": "ts-for-gir",
47
+ "license": "MIT",
48
+ "repository": {
49
+ "type": "git",
50
+ "url": "https://github.com/gjsify/types.git"
51
+ },
52
+ "bugs": {
53
+ "url": "https://github.com/gjsify/ts-for-gir/issues"
54
+ },
55
+ "homepage": "https://github.com/gjsify/types/tree/main/msg-0#readme"
56
+ }
57
+
58
+