@girs/peas-2 2.0.0-3.2.5 → 2.0.0-3.2.7

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/peas-2)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for Peas-2, generated from library version 2.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.5.
8
+ GJS TypeScript type definitions for Peas-2, generated from library version 2.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.7.
9
9
 
10
10
 
11
11
  ## Install
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/peas-2",
3
- "version": "2.0.0-3.2.5",
3
+ "version": "2.0.0-3.2.7",
4
4
  "description": "GJS TypeScript type definitions for Peas-2, generated from library version 2.0.0",
5
5
  "type": "module",
6
6
  "module": "peas-2.js",
@@ -25,11 +25,11 @@
25
25
  "test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit peas-2.d.cts"
26
26
  },
27
27
  "dependencies": {
28
- "@girs/gio-2.0": "^2.78.0-3.2.5",
29
- "@girs/gjs": "^3.2.5",
30
- "@girs/glib-2.0": "^2.78.0-3.2.5",
31
- "@girs/gmodule-2.0": "^2.0.0-3.2.5",
32
- "@girs/gobject-2.0": "^2.78.0-3.2.5"
28
+ "@girs/gio-2.0": "^2.78.0-3.2.7",
29
+ "@girs/gjs": "^3.2.7",
30
+ "@girs/glib-2.0": "^2.78.0-3.2.7",
31
+ "@girs/gmodule-2.0": "^2.0.0-3.2.7",
32
+ "@girs/gobject-2.0": "^2.78.0-3.2.7"
33
33
  },
34
34
  "devDependencies": {
35
35
  "typescript": "*"
package/peas-2.d.cts CHANGED
@@ -114,6 +114,32 @@ export module Engine {
114
114
  * See [ctor`Engine`.new_with_nonglobal_loaders] for more information.
115
115
  */
116
116
  nonglobal_loaders?: boolean | null
117
+ /**
118
+ * The list of loaded plugins.
119
+ *
120
+ * This will be modified when [method`Engine`.load_plugin] or
121
+ * [method`Engine`.unload_plugin] is called.
122
+ *
123
+ * This can be used with [class`Gio`.Settings] to save the loaded plugins by
124
+ * binding to this property after instantiating the engine by doing:
125
+ *
126
+ * ```c
127
+ * g_settings_bind (gsettings_object,
128
+ * LOADED_PLUGINS_KEY,
129
+ * engine,
130
+ * "loaded-plugins",
131
+ * G_SETTINGS_BIND_DEFAULT);
132
+ * ```
133
+ *
134
+ * Note: notify will not be called when the engine is being destroyed.
135
+ */
136
+ loadedPlugins?: string[] | null
137
+ /**
138
+ * If non-global plugin loaders should be used.
139
+ *
140
+ * See [ctor`Engine`.new_with_nonglobal_loaders] for more information.
141
+ */
142
+ nonglobalLoaders?: boolean | null
117
143
  }
118
144
 
119
145
  }
@@ -142,12 +168,38 @@ export interface Engine extends Gio.ListModel {
142
168
  * Note: notify will not be called when the engine is being destroyed.
143
169
  */
144
170
  loaded_plugins: string[]
171
+ /**
172
+ * The list of loaded plugins.
173
+ *
174
+ * This will be modified when [method`Engine`.load_plugin] or
175
+ * [method`Engine`.unload_plugin] is called.
176
+ *
177
+ * This can be used with [class`Gio`.Settings] to save the loaded plugins by
178
+ * binding to this property after instantiating the engine by doing:
179
+ *
180
+ * ```c
181
+ * g_settings_bind (gsettings_object,
182
+ * LOADED_PLUGINS_KEY,
183
+ * engine,
184
+ * "loaded-plugins",
185
+ * G_SETTINGS_BIND_DEFAULT);
186
+ * ```
187
+ *
188
+ * Note: notify will not be called when the engine is being destroyed.
189
+ */
190
+ loadedPlugins: string[]
145
191
  /**
146
192
  * If non-global plugin loaders should be used.
147
193
  *
148
194
  * See [ctor`Engine`.new_with_nonglobal_loaders] for more information.
149
195
  */
150
196
  readonly nonglobal_loaders: boolean
197
+ /**
198
+ * If non-global plugin loaders should be used.
199
+ *
200
+ * See [ctor`Engine`.new_with_nonglobal_loaders] for more information.
201
+ */
202
+ readonly nonglobalLoaders: boolean
151
203
 
152
204
  // Owm methods of Peas-2.Peas.Engine
153
205
 
@@ -170,7 +222,7 @@ export interface Engine extends Gio.ListModel {
170
222
  * @param module_dir the plugin module directory.
171
223
  * @param data_dir the plugin data directory.
172
224
  */
173
- add_search_path(module_dir: string | null, data_dir: string | null): void
225
+ add_search_path(module_dir: string, data_dir: string | null): void
174
226
  /**
175
227
  * If the plugin identified by `info` implements the `extension_type,`
176
228
  * then this function will return a new instance of this implementation.
@@ -213,7 +265,7 @@ export interface Engine extends Gio.ListModel {
213
265
  * however a warning has been added to help applications transition.
214
266
  * @param loader_name The name of the loader to enable.
215
267
  */
216
- enable_loader(loader_name: string | null): void
268
+ enable_loader(loader_name: string): void
217
269
  /**
218
270
  * Triggers garbage collection on all the loaders currently owned by the
219
271
  * #PeasEngine.
@@ -229,7 +281,7 @@ export interface Engine extends Gio.ListModel {
229
281
  * @param plugin_name A plugin name.
230
282
  * @returns the #PeasPluginInfo corresponding with a given plugin module name.
231
283
  */
232
- get_plugin_info(plugin_name: string | null): PluginInfo
284
+ get_plugin_info(plugin_name: string): PluginInfo
233
285
  /**
234
286
  * Loads the plugin corresponding to `info` if it's not currently loaded.
235
287
  *
@@ -380,6 +432,10 @@ export module ExtensionBase {
380
432
  * The [class`PluginInfo]` related to the current plugin.
381
433
  */
382
434
  plugin_info?: PluginInfo | null
435
+ /**
436
+ * The [class`PluginInfo]` related to the current plugin.
437
+ */
438
+ pluginInfo?: PluginInfo | null
383
439
  }
384
440
 
385
441
  }
@@ -396,10 +452,22 @@ export interface ExtensionBase {
396
452
  * [method`PluginInfo`.get_data_dir].
397
453
  */
398
454
  readonly data_dir: string | null
455
+ /**
456
+ * The The full path of the directory where the plugin
457
+ * should look for its data files.
458
+ *
459
+ * Note: This is the same path as that returned by
460
+ * [method`PluginInfo`.get_data_dir].
461
+ */
462
+ readonly dataDir: string | null
399
463
  /**
400
464
  * The [class`PluginInfo]` related to the current plugin.
401
465
  */
402
466
  readonly plugin_info: PluginInfo
467
+ /**
468
+ * The [class`PluginInfo]` related to the current plugin.
469
+ */
470
+ readonly pluginInfo: PluginInfo
403
471
 
404
472
  // Own fields of Peas-2.Peas.ExtensionBase
405
473
 
@@ -487,6 +555,8 @@ export module ExtensionSet {
487
555
  construct_properties?: any | null
488
556
  engine?: Engine | null
489
557
  extension_type?: GObject.GType | null
558
+ constructProperties?: any | null
559
+ extensionType?: GObject.GType | null
490
560
  }
491
561
 
492
562
  }
@@ -496,8 +566,10 @@ export interface ExtensionSet extends Gio.ListModel {
496
566
  // Own properties of Peas-2.Peas.ExtensionSet
497
567
 
498
568
  readonly construct_properties: any
569
+ readonly constructProperties: any
499
570
  readonly engine: Engine
500
571
  readonly extension_type: GObject.GType
572
+ readonly extensionType: GObject.GType
501
573
 
502
574
  // Owm methods of Peas-2.Peas.ExtensionSet
503
575
 
@@ -652,6 +724,11 @@ export module ObjectModule {
652
724
  path?: string | null
653
725
  resident?: boolean | null
654
726
  symbol?: string | null
727
+ /**
728
+ * Whether the module is loaded with local linkage, i.e. #G_MODULE_BIND_LOCAL.
729
+ */
730
+ localLinkage?: boolean | null
731
+ moduleName?: string | null
655
732
  }
656
733
 
657
734
  }
@@ -664,7 +741,12 @@ export interface ObjectModule extends GObject.TypePlugin {
664
741
  * Whether the module is loaded with local linkage, i.e. #G_MODULE_BIND_LOCAL.
665
742
  */
666
743
  readonly local_linkage: boolean
744
+ /**
745
+ * Whether the module is loaded with local linkage, i.e. #G_MODULE_BIND_LOCAL.
746
+ */
747
+ readonly localLinkage: boolean
667
748
  readonly module_name: string | null
749
+ readonly moduleName: string | null
668
750
  readonly path: string | null
669
751
  readonly resident: boolean
670
752
  readonly symbol: string | null
@@ -785,11 +867,15 @@ export interface PluginInfo {
785
867
  readonly dependencies: string[]
786
868
  readonly description: string | null
787
869
  readonly help_uri: string | null
870
+ readonly helpUri: string | null
788
871
  readonly hidden: boolean
789
872
  readonly icon_name: string | null
873
+ readonly iconName: string | null
790
874
  readonly loaded: boolean
791
875
  readonly module_dir: string | null
876
+ readonly moduleDir: string | null
792
877
  readonly module_name: string | null
878
+ readonly moduleName: string | null
793
879
  readonly name: string | null
794
880
  readonly version: string | null
795
881
  readonly website: string | null
@@ -809,7 +895,7 @@ export interface PluginInfo {
809
895
  * The relevant key in the plugin info file is "Copyright".
810
896
  * @returns the plugin's copyright information.
811
897
  */
812
- get_copyright(): string | null
898
+ get_copyright(): string
813
899
  /**
814
900
  * Gets the data dir of the plugin.
815
901
  *
@@ -819,7 +905,7 @@ export interface PluginInfo {
819
905
  * file was found.
820
906
  * @returns the plugin's data dir.
821
907
  */
822
- get_data_dir(): string | null
908
+ get_data_dir(): string
823
909
  /**
824
910
  * Gets the dependencies of the plugin.
825
911
  *
@@ -841,7 +927,7 @@ export interface PluginInfo {
841
927
  * The relevant key in the plugin info file is "Description".
842
928
  * @returns the plugin's description.
843
929
  */
844
- get_description(): string | null
930
+ get_description(): string
845
931
  /**
846
932
  * Gets external data specified for the plugin.
847
933
  *
@@ -854,7 +940,7 @@ export interface PluginInfo {
854
940
  * @param key The key to lookup.
855
941
  * @returns the external data, or %NULL if the external data could not be found.
856
942
  */
857
- get_external_data(key: string | null): string | null
943
+ get_external_data(key: string): string | null
858
944
  /**
859
945
  * Gets the help URI of the plugin.
860
946
  *
@@ -867,7 +953,7 @@ export interface PluginInfo {
867
953
  * "Help-Windows" and "Help-MacOS-X".
868
954
  * @returns the plugin's help URI.
869
955
  */
870
- get_help_uri(): string | null
956
+ get_help_uri(): string
871
957
  /**
872
958
  * Gets the icon name of the plugin.
873
959
  *
@@ -877,7 +963,7 @@ export interface PluginInfo {
877
963
  * The relevant key in the plugin info file is "Icon".
878
964
  * @returns the plugin's icon name.
879
965
  */
880
- get_icon_name(): string | null
966
+ get_icon_name(): string
881
967
  /**
882
968
  * Gets the module directory.
883
969
  *
@@ -886,7 +972,7 @@ export interface PluginInfo {
886
972
  * [class`Engine]`.
887
973
  * @returns the module directory.
888
974
  */
889
- get_module_dir(): string | null
975
+ get_module_dir(): string
890
976
  /**
891
977
  * Gets the module name.
892
978
  *
@@ -897,7 +983,7 @@ export interface PluginInfo {
897
983
  * The relevant key in the plugin info file is "Module".
898
984
  * @returns the module name.
899
985
  */
900
- get_module_name(): string | null
986
+ get_module_name(): string
901
987
  /**
902
988
  * Gets the name of the plugin.
903
989
  *
@@ -906,7 +992,7 @@ export interface PluginInfo {
906
992
  * The relevant key in the plugin info file is "Name".
907
993
  * @returns the plugin's name.
908
994
  */
909
- get_name(): string | null
995
+ get_name(): string
910
996
  /**
911
997
  * Creates a new #GResource for the given `filename`
912
998
  * located in the module directory. If `filename` is %NULL
@@ -929,20 +1015,20 @@ export interface PluginInfo {
929
1015
  * The relevant key in the plugin info file is "Version".
930
1016
  * @returns the plugin's version.
931
1017
  */
932
- get_version(): string | null
1018
+ get_version(): string
933
1019
  /**
934
1020
  * Gets the website of the plugin.
935
1021
  *
936
1022
  * The relevant key in the plugin info file is "Website".
937
1023
  * @returns the plugin's associated website.
938
1024
  */
939
- get_website(): string | null
1025
+ get_website(): string
940
1026
  /**
941
1027
  * Check if the plugin depends on another plugin.
942
1028
  * @param module_name The name of the plugin to check.
943
1029
  * @returns whether the plugin depends on the plugin @module_name.
944
1030
  */
945
- has_dependency(module_name: string | null): boolean
1031
+ has_dependency(module_name: string): boolean
946
1032
  /**
947
1033
  * Check if the plugin is available.
948
1034
  *
package/peas-2.d.ts CHANGED
@@ -116,6 +116,32 @@ module Engine {
116
116
  * See [ctor`Engine`.new_with_nonglobal_loaders] for more information.
117
117
  */
118
118
  nonglobal_loaders?: boolean | null
119
+ /**
120
+ * The list of loaded plugins.
121
+ *
122
+ * This will be modified when [method`Engine`.load_plugin] or
123
+ * [method`Engine`.unload_plugin] is called.
124
+ *
125
+ * This can be used with [class`Gio`.Settings] to save the loaded plugins by
126
+ * binding to this property after instantiating the engine by doing:
127
+ *
128
+ * ```c
129
+ * g_settings_bind (gsettings_object,
130
+ * LOADED_PLUGINS_KEY,
131
+ * engine,
132
+ * "loaded-plugins",
133
+ * G_SETTINGS_BIND_DEFAULT);
134
+ * ```
135
+ *
136
+ * Note: notify will not be called when the engine is being destroyed.
137
+ */
138
+ loadedPlugins?: string[] | null
139
+ /**
140
+ * If non-global plugin loaders should be used.
141
+ *
142
+ * See [ctor`Engine`.new_with_nonglobal_loaders] for more information.
143
+ */
144
+ nonglobalLoaders?: boolean | null
119
145
  }
120
146
 
121
147
  }
@@ -144,12 +170,38 @@ interface Engine extends Gio.ListModel {
144
170
  * Note: notify will not be called when the engine is being destroyed.
145
171
  */
146
172
  loaded_plugins: string[]
173
+ /**
174
+ * The list of loaded plugins.
175
+ *
176
+ * This will be modified when [method`Engine`.load_plugin] or
177
+ * [method`Engine`.unload_plugin] is called.
178
+ *
179
+ * This can be used with [class`Gio`.Settings] to save the loaded plugins by
180
+ * binding to this property after instantiating the engine by doing:
181
+ *
182
+ * ```c
183
+ * g_settings_bind (gsettings_object,
184
+ * LOADED_PLUGINS_KEY,
185
+ * engine,
186
+ * "loaded-plugins",
187
+ * G_SETTINGS_BIND_DEFAULT);
188
+ * ```
189
+ *
190
+ * Note: notify will not be called when the engine is being destroyed.
191
+ */
192
+ loadedPlugins: string[]
147
193
  /**
148
194
  * If non-global plugin loaders should be used.
149
195
  *
150
196
  * See [ctor`Engine`.new_with_nonglobal_loaders] for more information.
151
197
  */
152
198
  readonly nonglobal_loaders: boolean
199
+ /**
200
+ * If non-global plugin loaders should be used.
201
+ *
202
+ * See [ctor`Engine`.new_with_nonglobal_loaders] for more information.
203
+ */
204
+ readonly nonglobalLoaders: boolean
153
205
 
154
206
  // Owm methods of Peas-2.Peas.Engine
155
207
 
@@ -172,7 +224,7 @@ interface Engine extends Gio.ListModel {
172
224
  * @param module_dir the plugin module directory.
173
225
  * @param data_dir the plugin data directory.
174
226
  */
175
- add_search_path(module_dir: string | null, data_dir: string | null): void
227
+ add_search_path(module_dir: string, data_dir: string | null): void
176
228
  /**
177
229
  * If the plugin identified by `info` implements the `extension_type,`
178
230
  * then this function will return a new instance of this implementation.
@@ -215,7 +267,7 @@ interface Engine extends Gio.ListModel {
215
267
  * however a warning has been added to help applications transition.
216
268
  * @param loader_name The name of the loader to enable.
217
269
  */
218
- enable_loader(loader_name: string | null): void
270
+ enable_loader(loader_name: string): void
219
271
  /**
220
272
  * Triggers garbage collection on all the loaders currently owned by the
221
273
  * #PeasEngine.
@@ -231,7 +283,7 @@ interface Engine extends Gio.ListModel {
231
283
  * @param plugin_name A plugin name.
232
284
  * @returns the #PeasPluginInfo corresponding with a given plugin module name.
233
285
  */
234
- get_plugin_info(plugin_name: string | null): PluginInfo
286
+ get_plugin_info(plugin_name: string): PluginInfo
235
287
  /**
236
288
  * Loads the plugin corresponding to `info` if it's not currently loaded.
237
289
  *
@@ -382,6 +434,10 @@ module ExtensionBase {
382
434
  * The [class`PluginInfo]` related to the current plugin.
383
435
  */
384
436
  plugin_info?: PluginInfo | null
437
+ /**
438
+ * The [class`PluginInfo]` related to the current plugin.
439
+ */
440
+ pluginInfo?: PluginInfo | null
385
441
  }
386
442
 
387
443
  }
@@ -398,10 +454,22 @@ interface ExtensionBase {
398
454
  * [method`PluginInfo`.get_data_dir].
399
455
  */
400
456
  readonly data_dir: string | null
457
+ /**
458
+ * The The full path of the directory where the plugin
459
+ * should look for its data files.
460
+ *
461
+ * Note: This is the same path as that returned by
462
+ * [method`PluginInfo`.get_data_dir].
463
+ */
464
+ readonly dataDir: string | null
401
465
  /**
402
466
  * The [class`PluginInfo]` related to the current plugin.
403
467
  */
404
468
  readonly plugin_info: PluginInfo
469
+ /**
470
+ * The [class`PluginInfo]` related to the current plugin.
471
+ */
472
+ readonly pluginInfo: PluginInfo
405
473
 
406
474
  // Own fields of Peas-2.Peas.ExtensionBase
407
475
 
@@ -489,6 +557,8 @@ module ExtensionSet {
489
557
  construct_properties?: any | null
490
558
  engine?: Engine | null
491
559
  extension_type?: GObject.GType | null
560
+ constructProperties?: any | null
561
+ extensionType?: GObject.GType | null
492
562
  }
493
563
 
494
564
  }
@@ -498,8 +568,10 @@ interface ExtensionSet extends Gio.ListModel {
498
568
  // Own properties of Peas-2.Peas.ExtensionSet
499
569
 
500
570
  readonly construct_properties: any
571
+ readonly constructProperties: any
501
572
  readonly engine: Engine
502
573
  readonly extension_type: GObject.GType
574
+ readonly extensionType: GObject.GType
503
575
 
504
576
  // Owm methods of Peas-2.Peas.ExtensionSet
505
577
 
@@ -654,6 +726,11 @@ module ObjectModule {
654
726
  path?: string | null
655
727
  resident?: boolean | null
656
728
  symbol?: string | null
729
+ /**
730
+ * Whether the module is loaded with local linkage, i.e. #G_MODULE_BIND_LOCAL.
731
+ */
732
+ localLinkage?: boolean | null
733
+ moduleName?: string | null
657
734
  }
658
735
 
659
736
  }
@@ -666,7 +743,12 @@ interface ObjectModule extends GObject.TypePlugin {
666
743
  * Whether the module is loaded with local linkage, i.e. #G_MODULE_BIND_LOCAL.
667
744
  */
668
745
  readonly local_linkage: boolean
746
+ /**
747
+ * Whether the module is loaded with local linkage, i.e. #G_MODULE_BIND_LOCAL.
748
+ */
749
+ readonly localLinkage: boolean
669
750
  readonly module_name: string | null
751
+ readonly moduleName: string | null
670
752
  readonly path: string | null
671
753
  readonly resident: boolean
672
754
  readonly symbol: string | null
@@ -787,11 +869,15 @@ interface PluginInfo {
787
869
  readonly dependencies: string[]
788
870
  readonly description: string | null
789
871
  readonly help_uri: string | null
872
+ readonly helpUri: string | null
790
873
  readonly hidden: boolean
791
874
  readonly icon_name: string | null
875
+ readonly iconName: string | null
792
876
  readonly loaded: boolean
793
877
  readonly module_dir: string | null
878
+ readonly moduleDir: string | null
794
879
  readonly module_name: string | null
880
+ readonly moduleName: string | null
795
881
  readonly name: string | null
796
882
  readonly version: string | null
797
883
  readonly website: string | null
@@ -811,7 +897,7 @@ interface PluginInfo {
811
897
  * The relevant key in the plugin info file is "Copyright".
812
898
  * @returns the plugin's copyright information.
813
899
  */
814
- get_copyright(): string | null
900
+ get_copyright(): string
815
901
  /**
816
902
  * Gets the data dir of the plugin.
817
903
  *
@@ -821,7 +907,7 @@ interface PluginInfo {
821
907
  * file was found.
822
908
  * @returns the plugin's data dir.
823
909
  */
824
- get_data_dir(): string | null
910
+ get_data_dir(): string
825
911
  /**
826
912
  * Gets the dependencies of the plugin.
827
913
  *
@@ -843,7 +929,7 @@ interface PluginInfo {
843
929
  * The relevant key in the plugin info file is "Description".
844
930
  * @returns the plugin's description.
845
931
  */
846
- get_description(): string | null
932
+ get_description(): string
847
933
  /**
848
934
  * Gets external data specified for the plugin.
849
935
  *
@@ -856,7 +942,7 @@ interface PluginInfo {
856
942
  * @param key The key to lookup.
857
943
  * @returns the external data, or %NULL if the external data could not be found.
858
944
  */
859
- get_external_data(key: string | null): string | null
945
+ get_external_data(key: string): string | null
860
946
  /**
861
947
  * Gets the help URI of the plugin.
862
948
  *
@@ -869,7 +955,7 @@ interface PluginInfo {
869
955
  * "Help-Windows" and "Help-MacOS-X".
870
956
  * @returns the plugin's help URI.
871
957
  */
872
- get_help_uri(): string | null
958
+ get_help_uri(): string
873
959
  /**
874
960
  * Gets the icon name of the plugin.
875
961
  *
@@ -879,7 +965,7 @@ interface PluginInfo {
879
965
  * The relevant key in the plugin info file is "Icon".
880
966
  * @returns the plugin's icon name.
881
967
  */
882
- get_icon_name(): string | null
968
+ get_icon_name(): string
883
969
  /**
884
970
  * Gets the module directory.
885
971
  *
@@ -888,7 +974,7 @@ interface PluginInfo {
888
974
  * [class`Engine]`.
889
975
  * @returns the module directory.
890
976
  */
891
- get_module_dir(): string | null
977
+ get_module_dir(): string
892
978
  /**
893
979
  * Gets the module name.
894
980
  *
@@ -899,7 +985,7 @@ interface PluginInfo {
899
985
  * The relevant key in the plugin info file is "Module".
900
986
  * @returns the module name.
901
987
  */
902
- get_module_name(): string | null
988
+ get_module_name(): string
903
989
  /**
904
990
  * Gets the name of the plugin.
905
991
  *
@@ -908,7 +994,7 @@ interface PluginInfo {
908
994
  * The relevant key in the plugin info file is "Name".
909
995
  * @returns the plugin's name.
910
996
  */
911
- get_name(): string | null
997
+ get_name(): string
912
998
  /**
913
999
  * Creates a new #GResource for the given `filename`
914
1000
  * located in the module directory. If `filename` is %NULL
@@ -931,20 +1017,20 @@ interface PluginInfo {
931
1017
  * The relevant key in the plugin info file is "Version".
932
1018
  * @returns the plugin's version.
933
1019
  */
934
- get_version(): string | null
1020
+ get_version(): string
935
1021
  /**
936
1022
  * Gets the website of the plugin.
937
1023
  *
938
1024
  * The relevant key in the plugin info file is "Website".
939
1025
  * @returns the plugin's associated website.
940
1026
  */
941
- get_website(): string | null
1027
+ get_website(): string
942
1028
  /**
943
1029
  * Check if the plugin depends on another plugin.
944
1030
  * @param module_name The name of the plugin to check.
945
1031
  * @returns whether the plugin depends on the plugin @module_name.
946
1032
  */
947
- has_dependency(module_name: string | null): boolean
1033
+ has_dependency(module_name: string): boolean
948
1034
  /**
949
1035
  * Check if the plugin is available.
950
1036
  *