@girs/devhelp-3.0 3.0.0-3.2.6 → 3.0.0-3.2.8

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/devhelp-3.0)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for Devhelp-3.0, generated from library version 3.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.6.
8
+ GJS TypeScript type definitions for Devhelp-3.0, generated from library version 3.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.8.
9
9
 
10
10
 
11
11
  ## Install
@@ -0,0 +1,2 @@
1
+ export {}
2
+
@@ -0,0 +1,3 @@
1
+ const gi = globalThis.imports?.gi || {};
2
+ export default gi;
3
+
package/devhelp-3.0.d.cts CHANGED
@@ -120,7 +120,7 @@ export function finalize(): void
120
120
  * webkit_web_context_set_sandbox_enabled() on the default #WebKitWebContext.
121
121
  */
122
122
  export function init(): void
123
- export function link_type_to_string(link_type: LinkType): string | null
123
+ export function link_type_to_string(link_type: LinkType): string
124
124
  export module AssistantView {
125
125
 
126
126
  // Signal callback interfaces
@@ -158,7 +158,7 @@ export interface AssistantView extends Atk.ImplementorIface, Gtk.Buildable {
158
158
  * @param str the search query.
159
159
  * @returns %TRUE if @str was found, %FALSE otherwise.
160
160
  */
161
- search(str: string | null): boolean
161
+ search(str: string): boolean
162
162
  /**
163
163
  * Open `link` in the assistant view, if %NULL the view will be blanked.
164
164
  * @param link a #DhLink to set or %NULL.
@@ -218,7 +218,7 @@ export interface AssistantView extends Atk.ImplementorIface, Gtk.Buildable {
218
218
  * @param child the child widget
219
219
  * @param child_property the name of a child property installed on the class of `container`
220
220
  */
221
- child_notify(child: Gtk.Widget, child_property: string | null): void
221
+ child_notify(child: Gtk.Widget, child_property: string): void
222
222
 
223
223
  // Overloads of child_notify
224
224
 
@@ -232,7 +232,7 @@ export interface AssistantView extends Atk.ImplementorIface, Gtk.Buildable {
232
232
  * Also see gtk_container_child_notify().
233
233
  * @param child_property the name of a child property installed on the class of `widget’`s parent
234
234
  */
235
- child_notify(child_property: string | null): void
235
+ child_notify(child_property: string): void
236
236
  /**
237
237
  * Emits a #GtkWidget::child-notify signal for the
238
238
  * [child property][child-properties] `child_property`
@@ -243,7 +243,7 @@ export interface AssistantView extends Atk.ImplementorIface, Gtk.Buildable {
243
243
  * Also see gtk_container_child_notify().
244
244
  * @param child_property the name of a child property installed on the class of `widget’`s parent
245
245
  */
246
- child_notify(child_property: string | null): void
246
+ child_notify(child_property: string): void
247
247
 
248
248
  // Own signals of Devhelp-3.0.Devhelp.AssistantView
249
249
 
@@ -525,11 +525,11 @@ export interface Book {
525
525
  * with the title.
526
526
  * @returns the book ID.
527
527
  */
528
- get_id(): string | null
528
+ get_id(): string
529
529
  get_index_file(): Gio.File
530
- get_language(): string | null
530
+ get_language(): string
531
531
  get_links(): Link[]
532
- get_title(): string | null
532
+ get_title(): string
533
533
  /**
534
534
  * Gets the general structure of the book, as a tree. The tree contains only
535
535
  * #DhLink's of type %DH_LINK_TYPE_BOOK or %DH_LINK_TYPE_PAGE. The other
@@ -984,7 +984,7 @@ export interface BookTree extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrol
984
984
  * an anchor).
985
985
  * @param uri the URI to select.
986
986
  */
987
- select_uri(uri: string | null): void
987
+ select_uri(uri: string): void
988
988
 
989
989
  // Conflicting methods
990
990
 
@@ -999,7 +999,7 @@ export interface BookTree extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrol
999
999
  * @param child the child widget
1000
1000
  * @param child_property the name of a child property installed on the class of `container`
1001
1001
  */
1002
- child_notify(child: Gtk.Widget, child_property: string | null): void
1002
+ child_notify(child: Gtk.Widget, child_property: string): void
1003
1003
 
1004
1004
  // Overloads of child_notify
1005
1005
 
@@ -1013,7 +1013,7 @@ export interface BookTree extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrol
1013
1013
  * Also see gtk_container_child_notify().
1014
1014
  * @param child_property the name of a child property installed on the class of `widget’`s parent
1015
1015
  */
1016
- child_notify(child_property: string | null): void
1016
+ child_notify(child_property: string): void
1017
1017
  /**
1018
1018
  * Emits a #GtkWidget::child-notify signal for the
1019
1019
  * [child property][child-properties] `child_property`
@@ -1024,7 +1024,7 @@ export interface BookTree extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrol
1024
1024
  * Also see gtk_container_child_notify().
1025
1025
  * @param child_property the name of a child property installed on the class of `widget’`s parent
1026
1026
  */
1027
- child_notify(child_property: string | null): void
1027
+ child_notify(child_property: string): void
1028
1028
 
1029
1029
  // Own signals of Devhelp-3.0.Devhelp.BookTree
1030
1030
 
@@ -1283,7 +1283,7 @@ export interface Completion {
1283
1283
  * After adding all the strings you need to call dh_completion_sort().
1284
1284
  * @param str a string.
1285
1285
  */
1286
- add_string(str: string | null): void
1286
+ add_string(str: string): void
1287
1287
  /**
1288
1288
  * This function does the equivalent of:
1289
1289
  * 1. Searches the data structure of `completion` to find all strings that have
@@ -1297,7 +1297,7 @@ export interface Completion {
1297
1297
  * @param prefix the string to complete.
1298
1298
  * @returns the completed prefix, or %NULL if a longer prefix has not been found. Free with g_free() when no longer needed.
1299
1299
  */
1300
- complete(prefix: string | null): string | null
1300
+ complete(prefix: string): string | null
1301
1301
  /**
1302
1302
  * Sorts all the strings. It is required to call this function after adding
1303
1303
  * strings with dh_completion_add_string().
@@ -1332,7 +1332,7 @@ export class Completion extends GObject.Object {
1332
1332
  * @param prefix the string to complete.
1333
1333
  * @returns the completed prefix, or %NULL if a longer prefix has not been found. Free with g_free() when no longer needed.
1334
1334
  */
1335
- static aggregate_complete(completion_objects: Completion[] | null, prefix: string | null): string | null
1335
+ static aggregate_complete(completion_objects: Completion[] | null, prefix: string): string | null
1336
1336
  }
1337
1337
 
1338
1338
  export module KeywordModel {
@@ -1373,7 +1373,7 @@ export interface KeywordModel extends Gtk.TreeModel {
1373
1373
  * @param profile a #DhProfile, or %NULL for the default profile.
1374
1374
  * @returns the #DhLink that matches exactly @search_string, or %NULL if no such #DhLink was found within the maximum number of matches.
1375
1375
  */
1376
- filter(search_string: string | null, current_book_id: string | null, profile: Profile | null): Link | null
1376
+ filter(search_string: string, current_book_id: string | null, profile: Profile | null): Link | null
1377
1377
 
1378
1378
  // Class property signals of Devhelp-3.0.Devhelp.KeywordModel
1379
1379
 
@@ -1458,7 +1458,7 @@ export interface Notebook extends Atk.ImplementorIface, Gtk.Buildable {
1458
1458
  * @param child the child widget
1459
1459
  * @param child_property the name of a child property installed on the class of `container`
1460
1460
  */
1461
- child_notify(child: Gtk.Widget, child_property: string | null): void
1461
+ child_notify(child: Gtk.Widget, child_property: string): void
1462
1462
 
1463
1463
  // Overloads of child_notify
1464
1464
 
@@ -1472,7 +1472,7 @@ export interface Notebook extends Atk.ImplementorIface, Gtk.Buildable {
1472
1472
  * Also see gtk_container_child_notify().
1473
1473
  * @param child_property the name of a child property installed on the class of `widget’`s parent
1474
1474
  */
1475
- child_notify(child_property: string | null): void
1475
+ child_notify(child_property: string): void
1476
1476
  /**
1477
1477
  * Emits a #GtkWidget::child-notify signal for the
1478
1478
  * [child property][child-properties] `child_property`
@@ -1483,7 +1483,7 @@ export interface Notebook extends Atk.ImplementorIface, Gtk.Buildable {
1483
1483
  * Also see gtk_container_child_notify().
1484
1484
  * @param child_property the name of a child property installed on the class of `widget’`s parent
1485
1485
  */
1486
- child_notify(child_property: string | null): void
1486
+ child_notify(child_property: string): void
1487
1487
 
1488
1488
  // Class property signals of Devhelp-3.0.Devhelp.Notebook
1489
1489
 
@@ -1838,7 +1838,7 @@ export interface SearchBar extends Atk.ImplementorIface, Gtk.Buildable {
1838
1838
  * @param child the child widget
1839
1839
  * @param child_property the name of a child property installed on the class of `container`
1840
1840
  */
1841
- child_notify(child: Gtk.Widget, child_property: string | null): void
1841
+ child_notify(child: Gtk.Widget, child_property: string): void
1842
1842
 
1843
1843
  // Overloads of child_notify
1844
1844
 
@@ -1852,7 +1852,7 @@ export interface SearchBar extends Atk.ImplementorIface, Gtk.Buildable {
1852
1852
  * Also see gtk_container_child_notify().
1853
1853
  * @param child_property the name of a child property installed on the class of `widget’`s parent
1854
1854
  */
1855
- child_notify(child_property: string | null): void
1855
+ child_notify(child_property: string): void
1856
1856
  /**
1857
1857
  * Emits a #GtkWidget::child-notify signal for the
1858
1858
  * [child property][child-properties] `child_property`
@@ -1863,7 +1863,7 @@ export interface SearchBar extends Atk.ImplementorIface, Gtk.Buildable {
1863
1863
  * Also see gtk_container_child_notify().
1864
1864
  * @param child_property the name of a child property installed on the class of `widget’`s parent
1865
1865
  */
1866
- child_notify(child_property: string | null): void
1866
+ child_notify(child_property: string): void
1867
1867
 
1868
1868
  // Class property signals of Devhelp-3.0.Devhelp.SearchBar
1869
1869
 
@@ -2059,26 +2059,6 @@ export module Settings {
2059
2059
 
2060
2060
  // Own constructor properties of Devhelp-3.0.Devhelp.Settings
2061
2061
 
2062
- /**
2063
- * Font for text with fixed width, such as code examples.
2064
- *
2065
- * This property is independent of #DhSettings:use-system-fonts.
2066
- */
2067
- fixed_font?: string | null
2068
- /**
2069
- * Whether books should be grouped by programming language in the UI.
2070
- */
2071
- group_books_by_language?: boolean | null
2072
- /**
2073
- * Whether to use the system default fonts.
2074
- */
2075
- use_system_fonts?: boolean | null
2076
- /**
2077
- * Font for text with variable width.
2078
- *
2079
- * This property is independent of #DhSettings:use-system-fonts.
2080
- */
2081
- variable_font?: string | null
2082
2062
  /**
2083
2063
  * Font for text with fixed width, such as code examples.
2084
2064
  *
@@ -2107,40 +2087,20 @@ export interface Settings {
2107
2087
 
2108
2088
  // Own properties of Devhelp-3.0.Devhelp.Settings
2109
2089
 
2110
- /**
2111
- * Font for text with fixed width, such as code examples.
2112
- *
2113
- * This property is independent of #DhSettings:use-system-fonts.
2114
- */
2115
- fixed_font: string | null
2116
2090
  /**
2117
2091
  * Font for text with fixed width, such as code examples.
2118
2092
  *
2119
2093
  * This property is independent of #DhSettings:use-system-fonts.
2120
2094
  */
2121
2095
  fixedFont: string | null
2122
- /**
2123
- * Whether books should be grouped by programming language in the UI.
2124
- */
2125
- group_books_by_language: boolean
2126
2096
  /**
2127
2097
  * Whether books should be grouped by programming language in the UI.
2128
2098
  */
2129
2099
  groupBooksByLanguage: boolean
2130
- /**
2131
- * Whether to use the system default fonts.
2132
- */
2133
- use_system_fonts: boolean
2134
2100
  /**
2135
2101
  * Whether to use the system default fonts.
2136
2102
  */
2137
2103
  useSystemFonts: boolean
2138
- /**
2139
- * Font for text with variable width.
2140
- *
2141
- * This property is independent of #DhSettings:use-system-fonts.
2142
- */
2143
- variable_font: string | null
2144
2104
  /**
2145
2105
  * Font for text with variable width.
2146
2106
  *
@@ -2185,7 +2145,7 @@ export interface Settings {
2185
2145
  * property.
2186
2146
  * @returns the value of the #DhSettings:fixed-font property.
2187
2147
  */
2188
- get_fixed_font(): string | null
2148
+ get_fixed_font(): string
2189
2149
  get_group_books_by_language(): boolean
2190
2150
  /**
2191
2151
  * If #DhSettings:use-system-fonts is %TRUE, returns the system fonts. Otherwise
@@ -2200,7 +2160,7 @@ export interface Settings {
2200
2160
  * property.
2201
2161
  * @returns the value of the #DhSettings:variable-font property.
2202
2162
  */
2203
- get_variable_font(): string | null
2163
+ get_variable_font(): string
2204
2164
  /**
2205
2165
  * Returns whether `book` is enabled according to the "books-disabled" #GSettings
2206
2166
  * key. If the `book` ID is present in "books-disabled", this function returns
@@ -2220,7 +2180,7 @@ export interface Settings {
2220
2180
  * Sets the #DhSettings:fixed-font property.
2221
2181
  * @param fixed_font the new value.
2222
2182
  */
2223
- set_fixed_font(fixed_font: string | null): void
2183
+ set_fixed_font(fixed_font: string): void
2224
2184
  /**
2225
2185
  * Sets the #DhSettings:group-books-by-language property.
2226
2186
  * @param group_books_by_language the new value.
@@ -2235,7 +2195,7 @@ export interface Settings {
2235
2195
  * Sets the #DhSettings:variable-font property.
2236
2196
  * @param variable_font the new value.
2237
2197
  */
2238
- set_variable_font(variable_font: string | null): void
2198
+ set_variable_font(variable_font: string): void
2239
2199
  /**
2240
2200
  * Stops the effect of dh_settings_freeze_books_disabled_changed(), and emits
2241
2201
  * the #DhSettings::books-disabled-changed signal.
@@ -2323,7 +2283,7 @@ export interface SettingsBuilder {
2323
2283
  * used.
2324
2284
  * @param contents_path the path for the "contents" schema.
2325
2285
  */
2326
- set_contents_path(contents_path: string | null): void
2286
+ set_contents_path(contents_path: string): void
2327
2287
  /**
2328
2288
  * Sets the path for the "fonts" schema.
2329
2289
  *
@@ -2331,7 +2291,7 @@ export interface SettingsBuilder {
2331
2291
  * used.
2332
2292
  * @param fonts_path the path for the "fonts" schema.
2333
2293
  */
2334
- set_fonts_path(fonts_path: string | null): void
2294
+ set_fonts_path(fonts_path: string): void
2335
2295
 
2336
2296
  // Class property signals of Devhelp-3.0.Devhelp.SettingsBuilder
2337
2297
 
@@ -2411,12 +2371,12 @@ export interface Sidebar extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orient
2411
2371
  * Calls dh_book_tree_select_uri().
2412
2372
  * @param uri the URI to select.
2413
2373
  */
2414
- select_uri(uri: string | null): void
2374
+ select_uri(uri: string): void
2415
2375
  /**
2416
2376
  * Gives the focus to the search entry.
2417
2377
  */
2418
2378
  set_search_focus(): void
2419
- set_search_string(str: string | null): void
2379
+ set_search_string(str: string): void
2420
2380
 
2421
2381
  // Conflicting methods
2422
2382
 
@@ -2431,7 +2391,7 @@ export interface Sidebar extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orient
2431
2391
  * @param child the child widget
2432
2392
  * @param child_property the name of a child property installed on the class of `container`
2433
2393
  */
2434
- child_notify(child: Gtk.Widget, child_property: string | null): void
2394
+ child_notify(child: Gtk.Widget, child_property: string): void
2435
2395
 
2436
2396
  // Overloads of child_notify
2437
2397
 
@@ -2445,7 +2405,7 @@ export interface Sidebar extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orient
2445
2405
  * Also see gtk_container_child_notify().
2446
2406
  * @param child_property the name of a child property installed on the class of `widget’`s parent
2447
2407
  */
2448
- child_notify(child_property: string | null): void
2408
+ child_notify(child_property: string): void
2449
2409
  /**
2450
2410
  * Emits a #GtkWidget::child-notify signal for the
2451
2411
  * [child property][child-properties] `child_property`
@@ -2456,7 +2416,7 @@ export interface Sidebar extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orient
2456
2416
  * Also see gtk_container_child_notify().
2457
2417
  * @param child_property the name of a child property installed on the class of `widget’`s parent
2458
2418
  */
2459
- child_notify(child_property: string | null): void
2419
+ child_notify(child_property: string): void
2460
2420
 
2461
2421
  // Own virtual methods of Devhelp-3.0.Devhelp.Sidebar
2462
2422
 
@@ -2656,11 +2616,6 @@ export module Tab {
2656
2616
 
2657
2617
  // Own constructor properties of Devhelp-3.0.Devhelp.Tab
2658
2618
 
2659
- /**
2660
- * The #DhWebView of the tab. If set to %NULL a #DhWebView is created
2661
- * with the default #DhProfile.
2662
- */
2663
- web_view?: WebView | null
2664
2619
  /**
2665
2620
  * The #DhWebView of the tab. If set to %NULL a #DhWebView is created
2666
2621
  * with the default #DhProfile.
@@ -2674,11 +2629,6 @@ export interface Tab extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orientable
2674
2629
 
2675
2630
  // Own properties of Devhelp-3.0.Devhelp.Tab
2676
2631
 
2677
- /**
2678
- * The #DhWebView of the tab. If set to %NULL a #DhWebView is created
2679
- * with the default #DhProfile.
2680
- */
2681
- readonly web_view: WebView
2682
2632
  /**
2683
2633
  * The #DhWebView of the tab. If set to %NULL a #DhWebView is created
2684
2634
  * with the default #DhProfile.
@@ -2707,7 +2657,7 @@ export interface Tab extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orientable
2707
2657
  * @param child the child widget
2708
2658
  * @param child_property the name of a child property installed on the class of `container`
2709
2659
  */
2710
- child_notify(child: Gtk.Widget, child_property: string | null): void
2660
+ child_notify(child: Gtk.Widget, child_property: string): void
2711
2661
 
2712
2662
  // Overloads of child_notify
2713
2663
 
@@ -2721,7 +2671,7 @@ export interface Tab extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orientable
2721
2671
  * Also see gtk_container_child_notify().
2722
2672
  * @param child_property the name of a child property installed on the class of `widget’`s parent
2723
2673
  */
2724
- child_notify(child_property: string | null): void
2674
+ child_notify(child_property: string): void
2725
2675
  /**
2726
2676
  * Emits a #GtkWidget::child-notify signal for the
2727
2677
  * [child property][child-properties] `child_property`
@@ -2732,7 +2682,7 @@ export interface Tab extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orientable
2732
2682
  * Also see gtk_container_child_notify().
2733
2683
  * @param child_property the name of a child property installed on the class of `widget’`s parent
2734
2684
  */
2735
- child_notify(child_property: string | null): void
2685
+ child_notify(child_property: string): void
2736
2686
 
2737
2687
  // Class property signals of Devhelp-3.0.Devhelp.Tab
2738
2688
 
@@ -2962,7 +2912,7 @@ export interface TabLabel extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orien
2962
2912
  * @param child the child widget
2963
2913
  * @param child_property the name of a child property installed on the class of `container`
2964
2914
  */
2965
- child_notify(child: Gtk.Widget, child_property: string | null): void
2915
+ child_notify(child: Gtk.Widget, child_property: string): void
2966
2916
 
2967
2917
  // Overloads of child_notify
2968
2918
 
@@ -2976,7 +2926,7 @@ export interface TabLabel extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orien
2976
2926
  * Also see gtk_container_child_notify().
2977
2927
  * @param child_property the name of a child property installed on the class of `widget’`s parent
2978
2928
  */
2979
- child_notify(child_property: string | null): void
2929
+ child_notify(child_property: string): void
2980
2930
  /**
2981
2931
  * Emits a #GtkWidget::child-notify signal for the
2982
2932
  * [child property][child-properties] `child_property`
@@ -2987,7 +2937,7 @@ export interface TabLabel extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orien
2987
2937
  * Also see gtk_container_child_notify().
2988
2938
  * @param child_property the name of a child property installed on the class of `widget’`s parent
2989
2939
  */
2990
- child_notify(child_property: string | null): void
2940
+ child_notify(child_property: string): void
2991
2941
 
2992
2942
  // Class property signals of Devhelp-3.0.Devhelp.TabLabel
2993
2943
 
@@ -3221,7 +3171,7 @@ export interface WebView extends Atk.ImplementorIface, Gtk.Buildable {
3221
3171
  * (translated).
3222
3172
  * @returns the title of @view, suitable for a tab label or window title.
3223
3173
  */
3224
- get_devhelp_title(): string | null
3174
+ get_devhelp_title(): string
3225
3175
  get_profile(): Profile
3226
3176
  /**
3227
3177
  * Reset the text size to the normal size.
@@ -3306,7 +3256,7 @@ export interface WebView extends Atk.ImplementorIface, Gtk.Buildable {
3306
3256
  * @param child the child widget
3307
3257
  * @param child_property the name of a child property installed on the class of `container`
3308
3258
  */
3309
- child_notify(child: Gtk.Widget, child_property: string | null): void
3259
+ child_notify(child: Gtk.Widget, child_property: string): void
3310
3260
 
3311
3261
  // Overloads of child_notify
3312
3262
 
@@ -3320,7 +3270,7 @@ export interface WebView extends Atk.ImplementorIface, Gtk.Buildable {
3320
3270
  * Also see gtk_container_child_notify().
3321
3271
  * @param child_property the name of a child property installed on the class of `widget’`s parent
3322
3272
  */
3323
- child_notify(child_property: string | null): void
3273
+ child_notify(child_property: string): void
3324
3274
  /**
3325
3275
  * Emits a #GtkWidget::child-notify signal for the
3326
3276
  * [child property][child-properties] `child_property`
@@ -3331,11 +3281,11 @@ export interface WebView extends Atk.ImplementorIface, Gtk.Buildable {
3331
3281
  * Also see gtk_container_child_notify().
3332
3282
  * @param child_property the name of a child property installed on the class of `widget’`s parent
3333
3283
  */
3334
- child_notify(child_property: string | null): void
3284
+ child_notify(child_property: string): void
3335
3285
 
3336
3286
  // Own virtual methods of Devhelp-3.0.Devhelp.WebView
3337
3287
 
3338
- vfunc_open_new_tab(uri: string | null): void
3288
+ vfunc_open_new_tab(uri: string): void
3339
3289
 
3340
3290
  // Own signals of Devhelp-3.0.Devhelp.WebView
3341
3291
 
@@ -3779,7 +3729,7 @@ export interface Link {
3779
3729
  * @param page_id a page ID, i.e. the filename without its extension.
3780
3730
  * @returns whether @link belongs to @page_id.
3781
3731
  */
3782
- belongs_to_page(page_id: string | null): boolean
3732
+ belongs_to_page(page_id: string): boolean
3783
3733
  /**
3784
3734
  * Compares the links `a` and `b`. This function is used to determine in which
3785
3735
  * order the links should be displayed.
@@ -3787,18 +3737,18 @@ export interface Link {
3787
3737
  * @returns an integer less than zero if @a should appear before @b; zero if there are no preferences; an integer greater than zero if @b should appear before @a.
3788
3738
  */
3789
3739
  compare(b: Link): number
3790
- get_book_id(): string | null
3791
- get_book_title(): string | null
3740
+ get_book_id(): string
3741
+ get_book_title(): string
3792
3742
  get_flags(): LinkFlags
3793
3743
  get_link_type(): LinkType
3794
- get_name(): string | null
3744
+ get_name(): string
3795
3745
  /**
3796
3746
  * Gets the `link` URI, by concateneting the book base path with the `link`
3797
3747
  * relative URL.
3798
3748
  * @returns the @link URI, or %NULL if getting the URI failed. Free with g_free() when no longer needed.
3799
3749
  */
3800
3750
  get_uri(): string | null
3801
- match_relative_url(relative_url: string | null): boolean
3751
+ match_relative_url(relative_url: string): boolean
3802
3752
  /**
3803
3753
  * Increases the reference count of `link`.
3804
3754
  *
@@ -3827,9 +3777,9 @@ export class Link {
3827
3777
 
3828
3778
  // Constructors of Devhelp-3.0.Devhelp.Link
3829
3779
 
3830
- constructor(type: LinkType, book_link: Link, name: string | null, relative_url: string | null)
3831
- static new(type: LinkType, book_link: Link, name: string | null, relative_url: string | null): Link
3832
- static new_book(base_path: string | null, book_id: string | null, book_title: string | null, relative_url: string | null): Link
3780
+ constructor(type: LinkType, book_link: Link, name: string, relative_url: string)
3781
+ static new(type: LinkType, book_link: Link, name: string, relative_url: string): Link
3782
+ static new_book(base_path: string, book_id: string, book_title: string, relative_url: string): Link
3833
3783
  }
3834
3784
 
3835
3785
  export interface NotebookClass {
@@ -4055,7 +4005,7 @@ export interface WebViewClass {
4055
4005
  // Own fields of Devhelp-3.0.Devhelp.WebViewClass
4056
4006
 
4057
4007
  parent_class: WebKit2.WebViewClass
4058
- open_new_tab: (view: WebView, uri: string | null) => void
4008
+ open_new_tab: (view: WebView, uri: string) => void
4059
4009
  padding: any[]
4060
4010
  }
4061
4011
 
package/devhelp-3.0.d.ts CHANGED
@@ -122,7 +122,7 @@ function finalize(): void
122
122
  * webkit_web_context_set_sandbox_enabled() on the default #WebKitWebContext.
123
123
  */
124
124
  function init(): void
125
- function link_type_to_string(link_type: LinkType): string | null
125
+ function link_type_to_string(link_type: LinkType): string
126
126
  module AssistantView {
127
127
 
128
128
  // Signal callback interfaces
@@ -160,7 +160,7 @@ interface AssistantView extends Atk.ImplementorIface, Gtk.Buildable {
160
160
  * @param str the search query.
161
161
  * @returns %TRUE if @str was found, %FALSE otherwise.
162
162
  */
163
- search(str: string | null): boolean
163
+ search(str: string): boolean
164
164
  /**
165
165
  * Open `link` in the assistant view, if %NULL the view will be blanked.
166
166
  * @param link a #DhLink to set or %NULL.
@@ -220,7 +220,7 @@ interface AssistantView extends Atk.ImplementorIface, Gtk.Buildable {
220
220
  * @param child the child widget
221
221
  * @param child_property the name of a child property installed on the class of `container`
222
222
  */
223
- child_notify(child: Gtk.Widget, child_property: string | null): void
223
+ child_notify(child: Gtk.Widget, child_property: string): void
224
224
 
225
225
  // Overloads of child_notify
226
226
 
@@ -234,7 +234,7 @@ interface AssistantView extends Atk.ImplementorIface, Gtk.Buildable {
234
234
  * Also see gtk_container_child_notify().
235
235
  * @param child_property the name of a child property installed on the class of `widget’`s parent
236
236
  */
237
- child_notify(child_property: string | null): void
237
+ child_notify(child_property: string): void
238
238
  /**
239
239
  * Emits a #GtkWidget::child-notify signal for the
240
240
  * [child property][child-properties] `child_property`
@@ -245,7 +245,7 @@ interface AssistantView extends Atk.ImplementorIface, Gtk.Buildable {
245
245
  * Also see gtk_container_child_notify().
246
246
  * @param child_property the name of a child property installed on the class of `widget’`s parent
247
247
  */
248
- child_notify(child_property: string | null): void
248
+ child_notify(child_property: string): void
249
249
 
250
250
  // Own signals of Devhelp-3.0.Devhelp.AssistantView
251
251
 
@@ -527,11 +527,11 @@ interface Book {
527
527
  * with the title.
528
528
  * @returns the book ID.
529
529
  */
530
- get_id(): string | null
530
+ get_id(): string
531
531
  get_index_file(): Gio.File
532
- get_language(): string | null
532
+ get_language(): string
533
533
  get_links(): Link[]
534
- get_title(): string | null
534
+ get_title(): string
535
535
  /**
536
536
  * Gets the general structure of the book, as a tree. The tree contains only
537
537
  * #DhLink's of type %DH_LINK_TYPE_BOOK or %DH_LINK_TYPE_PAGE. The other
@@ -986,7 +986,7 @@ interface BookTree extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable {
986
986
  * an anchor).
987
987
  * @param uri the URI to select.
988
988
  */
989
- select_uri(uri: string | null): void
989
+ select_uri(uri: string): void
990
990
 
991
991
  // Conflicting methods
992
992
 
@@ -1001,7 +1001,7 @@ interface BookTree extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable {
1001
1001
  * @param child the child widget
1002
1002
  * @param child_property the name of a child property installed on the class of `container`
1003
1003
  */
1004
- child_notify(child: Gtk.Widget, child_property: string | null): void
1004
+ child_notify(child: Gtk.Widget, child_property: string): void
1005
1005
 
1006
1006
  // Overloads of child_notify
1007
1007
 
@@ -1015,7 +1015,7 @@ interface BookTree extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable {
1015
1015
  * Also see gtk_container_child_notify().
1016
1016
  * @param child_property the name of a child property installed on the class of `widget’`s parent
1017
1017
  */
1018
- child_notify(child_property: string | null): void
1018
+ child_notify(child_property: string): void
1019
1019
  /**
1020
1020
  * Emits a #GtkWidget::child-notify signal for the
1021
1021
  * [child property][child-properties] `child_property`
@@ -1026,7 +1026,7 @@ interface BookTree extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable {
1026
1026
  * Also see gtk_container_child_notify().
1027
1027
  * @param child_property the name of a child property installed on the class of `widget’`s parent
1028
1028
  */
1029
- child_notify(child_property: string | null): void
1029
+ child_notify(child_property: string): void
1030
1030
 
1031
1031
  // Own signals of Devhelp-3.0.Devhelp.BookTree
1032
1032
 
@@ -1285,7 +1285,7 @@ interface Completion {
1285
1285
  * After adding all the strings you need to call dh_completion_sort().
1286
1286
  * @param str a string.
1287
1287
  */
1288
- add_string(str: string | null): void
1288
+ add_string(str: string): void
1289
1289
  /**
1290
1290
  * This function does the equivalent of:
1291
1291
  * 1. Searches the data structure of `completion` to find all strings that have
@@ -1299,7 +1299,7 @@ interface Completion {
1299
1299
  * @param prefix the string to complete.
1300
1300
  * @returns the completed prefix, or %NULL if a longer prefix has not been found. Free with g_free() when no longer needed.
1301
1301
  */
1302
- complete(prefix: string | null): string | null
1302
+ complete(prefix: string): string | null
1303
1303
  /**
1304
1304
  * Sorts all the strings. It is required to call this function after adding
1305
1305
  * strings with dh_completion_add_string().
@@ -1334,7 +1334,7 @@ class Completion extends GObject.Object {
1334
1334
  * @param prefix the string to complete.
1335
1335
  * @returns the completed prefix, or %NULL if a longer prefix has not been found. Free with g_free() when no longer needed.
1336
1336
  */
1337
- static aggregate_complete(completion_objects: Completion[] | null, prefix: string | null): string | null
1337
+ static aggregate_complete(completion_objects: Completion[] | null, prefix: string): string | null
1338
1338
  }
1339
1339
 
1340
1340
  module KeywordModel {
@@ -1375,7 +1375,7 @@ interface KeywordModel extends Gtk.TreeModel {
1375
1375
  * @param profile a #DhProfile, or %NULL for the default profile.
1376
1376
  * @returns the #DhLink that matches exactly @search_string, or %NULL if no such #DhLink was found within the maximum number of matches.
1377
1377
  */
1378
- filter(search_string: string | null, current_book_id: string | null, profile: Profile | null): Link | null
1378
+ filter(search_string: string, current_book_id: string | null, profile: Profile | null): Link | null
1379
1379
 
1380
1380
  // Class property signals of Devhelp-3.0.Devhelp.KeywordModel
1381
1381
 
@@ -1460,7 +1460,7 @@ interface Notebook extends Atk.ImplementorIface, Gtk.Buildable {
1460
1460
  * @param child the child widget
1461
1461
  * @param child_property the name of a child property installed on the class of `container`
1462
1462
  */
1463
- child_notify(child: Gtk.Widget, child_property: string | null): void
1463
+ child_notify(child: Gtk.Widget, child_property: string): void
1464
1464
 
1465
1465
  // Overloads of child_notify
1466
1466
 
@@ -1474,7 +1474,7 @@ interface Notebook extends Atk.ImplementorIface, Gtk.Buildable {
1474
1474
  * Also see gtk_container_child_notify().
1475
1475
  * @param child_property the name of a child property installed on the class of `widget’`s parent
1476
1476
  */
1477
- child_notify(child_property: string | null): void
1477
+ child_notify(child_property: string): void
1478
1478
  /**
1479
1479
  * Emits a #GtkWidget::child-notify signal for the
1480
1480
  * [child property][child-properties] `child_property`
@@ -1485,7 +1485,7 @@ interface Notebook extends Atk.ImplementorIface, Gtk.Buildable {
1485
1485
  * Also see gtk_container_child_notify().
1486
1486
  * @param child_property the name of a child property installed on the class of `widget’`s parent
1487
1487
  */
1488
- child_notify(child_property: string | null): void
1488
+ child_notify(child_property: string): void
1489
1489
 
1490
1490
  // Class property signals of Devhelp-3.0.Devhelp.Notebook
1491
1491
 
@@ -1840,7 +1840,7 @@ interface SearchBar extends Atk.ImplementorIface, Gtk.Buildable {
1840
1840
  * @param child the child widget
1841
1841
  * @param child_property the name of a child property installed on the class of `container`
1842
1842
  */
1843
- child_notify(child: Gtk.Widget, child_property: string | null): void
1843
+ child_notify(child: Gtk.Widget, child_property: string): void
1844
1844
 
1845
1845
  // Overloads of child_notify
1846
1846
 
@@ -1854,7 +1854,7 @@ interface SearchBar extends Atk.ImplementorIface, Gtk.Buildable {
1854
1854
  * Also see gtk_container_child_notify().
1855
1855
  * @param child_property the name of a child property installed on the class of `widget’`s parent
1856
1856
  */
1857
- child_notify(child_property: string | null): void
1857
+ child_notify(child_property: string): void
1858
1858
  /**
1859
1859
  * Emits a #GtkWidget::child-notify signal for the
1860
1860
  * [child property][child-properties] `child_property`
@@ -1865,7 +1865,7 @@ interface SearchBar extends Atk.ImplementorIface, Gtk.Buildable {
1865
1865
  * Also see gtk_container_child_notify().
1866
1866
  * @param child_property the name of a child property installed on the class of `widget’`s parent
1867
1867
  */
1868
- child_notify(child_property: string | null): void
1868
+ child_notify(child_property: string): void
1869
1869
 
1870
1870
  // Class property signals of Devhelp-3.0.Devhelp.SearchBar
1871
1871
 
@@ -2061,26 +2061,6 @@ module Settings {
2061
2061
 
2062
2062
  // Own constructor properties of Devhelp-3.0.Devhelp.Settings
2063
2063
 
2064
- /**
2065
- * Font for text with fixed width, such as code examples.
2066
- *
2067
- * This property is independent of #DhSettings:use-system-fonts.
2068
- */
2069
- fixed_font?: string | null
2070
- /**
2071
- * Whether books should be grouped by programming language in the UI.
2072
- */
2073
- group_books_by_language?: boolean | null
2074
- /**
2075
- * Whether to use the system default fonts.
2076
- */
2077
- use_system_fonts?: boolean | null
2078
- /**
2079
- * Font for text with variable width.
2080
- *
2081
- * This property is independent of #DhSettings:use-system-fonts.
2082
- */
2083
- variable_font?: string | null
2084
2064
  /**
2085
2065
  * Font for text with fixed width, such as code examples.
2086
2066
  *
@@ -2109,40 +2089,20 @@ interface Settings {
2109
2089
 
2110
2090
  // Own properties of Devhelp-3.0.Devhelp.Settings
2111
2091
 
2112
- /**
2113
- * Font for text with fixed width, such as code examples.
2114
- *
2115
- * This property is independent of #DhSettings:use-system-fonts.
2116
- */
2117
- fixed_font: string | null
2118
2092
  /**
2119
2093
  * Font for text with fixed width, such as code examples.
2120
2094
  *
2121
2095
  * This property is independent of #DhSettings:use-system-fonts.
2122
2096
  */
2123
2097
  fixedFont: string | null
2124
- /**
2125
- * Whether books should be grouped by programming language in the UI.
2126
- */
2127
- group_books_by_language: boolean
2128
2098
  /**
2129
2099
  * Whether books should be grouped by programming language in the UI.
2130
2100
  */
2131
2101
  groupBooksByLanguage: boolean
2132
- /**
2133
- * Whether to use the system default fonts.
2134
- */
2135
- use_system_fonts: boolean
2136
2102
  /**
2137
2103
  * Whether to use the system default fonts.
2138
2104
  */
2139
2105
  useSystemFonts: boolean
2140
- /**
2141
- * Font for text with variable width.
2142
- *
2143
- * This property is independent of #DhSettings:use-system-fonts.
2144
- */
2145
- variable_font: string | null
2146
2106
  /**
2147
2107
  * Font for text with variable width.
2148
2108
  *
@@ -2187,7 +2147,7 @@ interface Settings {
2187
2147
  * property.
2188
2148
  * @returns the value of the #DhSettings:fixed-font property.
2189
2149
  */
2190
- get_fixed_font(): string | null
2150
+ get_fixed_font(): string
2191
2151
  get_group_books_by_language(): boolean
2192
2152
  /**
2193
2153
  * If #DhSettings:use-system-fonts is %TRUE, returns the system fonts. Otherwise
@@ -2202,7 +2162,7 @@ interface Settings {
2202
2162
  * property.
2203
2163
  * @returns the value of the #DhSettings:variable-font property.
2204
2164
  */
2205
- get_variable_font(): string | null
2165
+ get_variable_font(): string
2206
2166
  /**
2207
2167
  * Returns whether `book` is enabled according to the "books-disabled" #GSettings
2208
2168
  * key. If the `book` ID is present in "books-disabled", this function returns
@@ -2222,7 +2182,7 @@ interface Settings {
2222
2182
  * Sets the #DhSettings:fixed-font property.
2223
2183
  * @param fixed_font the new value.
2224
2184
  */
2225
- set_fixed_font(fixed_font: string | null): void
2185
+ set_fixed_font(fixed_font: string): void
2226
2186
  /**
2227
2187
  * Sets the #DhSettings:group-books-by-language property.
2228
2188
  * @param group_books_by_language the new value.
@@ -2237,7 +2197,7 @@ interface Settings {
2237
2197
  * Sets the #DhSettings:variable-font property.
2238
2198
  * @param variable_font the new value.
2239
2199
  */
2240
- set_variable_font(variable_font: string | null): void
2200
+ set_variable_font(variable_font: string): void
2241
2201
  /**
2242
2202
  * Stops the effect of dh_settings_freeze_books_disabled_changed(), and emits
2243
2203
  * the #DhSettings::books-disabled-changed signal.
@@ -2325,7 +2285,7 @@ interface SettingsBuilder {
2325
2285
  * used.
2326
2286
  * @param contents_path the path for the "contents" schema.
2327
2287
  */
2328
- set_contents_path(contents_path: string | null): void
2288
+ set_contents_path(contents_path: string): void
2329
2289
  /**
2330
2290
  * Sets the path for the "fonts" schema.
2331
2291
  *
@@ -2333,7 +2293,7 @@ interface SettingsBuilder {
2333
2293
  * used.
2334
2294
  * @param fonts_path the path for the "fonts" schema.
2335
2295
  */
2336
- set_fonts_path(fonts_path: string | null): void
2296
+ set_fonts_path(fonts_path: string): void
2337
2297
 
2338
2298
  // Class property signals of Devhelp-3.0.Devhelp.SettingsBuilder
2339
2299
 
@@ -2413,12 +2373,12 @@ interface Sidebar extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orientable {
2413
2373
  * Calls dh_book_tree_select_uri().
2414
2374
  * @param uri the URI to select.
2415
2375
  */
2416
- select_uri(uri: string | null): void
2376
+ select_uri(uri: string): void
2417
2377
  /**
2418
2378
  * Gives the focus to the search entry.
2419
2379
  */
2420
2380
  set_search_focus(): void
2421
- set_search_string(str: string | null): void
2381
+ set_search_string(str: string): void
2422
2382
 
2423
2383
  // Conflicting methods
2424
2384
 
@@ -2433,7 +2393,7 @@ interface Sidebar extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orientable {
2433
2393
  * @param child the child widget
2434
2394
  * @param child_property the name of a child property installed on the class of `container`
2435
2395
  */
2436
- child_notify(child: Gtk.Widget, child_property: string | null): void
2396
+ child_notify(child: Gtk.Widget, child_property: string): void
2437
2397
 
2438
2398
  // Overloads of child_notify
2439
2399
 
@@ -2447,7 +2407,7 @@ interface Sidebar extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orientable {
2447
2407
  * Also see gtk_container_child_notify().
2448
2408
  * @param child_property the name of a child property installed on the class of `widget’`s parent
2449
2409
  */
2450
- child_notify(child_property: string | null): void
2410
+ child_notify(child_property: string): void
2451
2411
  /**
2452
2412
  * Emits a #GtkWidget::child-notify signal for the
2453
2413
  * [child property][child-properties] `child_property`
@@ -2458,7 +2418,7 @@ interface Sidebar extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orientable {
2458
2418
  * Also see gtk_container_child_notify().
2459
2419
  * @param child_property the name of a child property installed on the class of `widget’`s parent
2460
2420
  */
2461
- child_notify(child_property: string | null): void
2421
+ child_notify(child_property: string): void
2462
2422
 
2463
2423
  // Own virtual methods of Devhelp-3.0.Devhelp.Sidebar
2464
2424
 
@@ -2658,11 +2618,6 @@ module Tab {
2658
2618
 
2659
2619
  // Own constructor properties of Devhelp-3.0.Devhelp.Tab
2660
2620
 
2661
- /**
2662
- * The #DhWebView of the tab. If set to %NULL a #DhWebView is created
2663
- * with the default #DhProfile.
2664
- */
2665
- web_view?: WebView | null
2666
2621
  /**
2667
2622
  * The #DhWebView of the tab. If set to %NULL a #DhWebView is created
2668
2623
  * with the default #DhProfile.
@@ -2676,11 +2631,6 @@ interface Tab extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orientable {
2676
2631
 
2677
2632
  // Own properties of Devhelp-3.0.Devhelp.Tab
2678
2633
 
2679
- /**
2680
- * The #DhWebView of the tab. If set to %NULL a #DhWebView is created
2681
- * with the default #DhProfile.
2682
- */
2683
- readonly web_view: WebView
2684
2634
  /**
2685
2635
  * The #DhWebView of the tab. If set to %NULL a #DhWebView is created
2686
2636
  * with the default #DhProfile.
@@ -2709,7 +2659,7 @@ interface Tab extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orientable {
2709
2659
  * @param child the child widget
2710
2660
  * @param child_property the name of a child property installed on the class of `container`
2711
2661
  */
2712
- child_notify(child: Gtk.Widget, child_property: string | null): void
2662
+ child_notify(child: Gtk.Widget, child_property: string): void
2713
2663
 
2714
2664
  // Overloads of child_notify
2715
2665
 
@@ -2723,7 +2673,7 @@ interface Tab extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orientable {
2723
2673
  * Also see gtk_container_child_notify().
2724
2674
  * @param child_property the name of a child property installed on the class of `widget’`s parent
2725
2675
  */
2726
- child_notify(child_property: string | null): void
2676
+ child_notify(child_property: string): void
2727
2677
  /**
2728
2678
  * Emits a #GtkWidget::child-notify signal for the
2729
2679
  * [child property][child-properties] `child_property`
@@ -2734,7 +2684,7 @@ interface Tab extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orientable {
2734
2684
  * Also see gtk_container_child_notify().
2735
2685
  * @param child_property the name of a child property installed on the class of `widget’`s parent
2736
2686
  */
2737
- child_notify(child_property: string | null): void
2687
+ child_notify(child_property: string): void
2738
2688
 
2739
2689
  // Class property signals of Devhelp-3.0.Devhelp.Tab
2740
2690
 
@@ -2964,7 +2914,7 @@ interface TabLabel extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orientable {
2964
2914
  * @param child the child widget
2965
2915
  * @param child_property the name of a child property installed on the class of `container`
2966
2916
  */
2967
- child_notify(child: Gtk.Widget, child_property: string | null): void
2917
+ child_notify(child: Gtk.Widget, child_property: string): void
2968
2918
 
2969
2919
  // Overloads of child_notify
2970
2920
 
@@ -2978,7 +2928,7 @@ interface TabLabel extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orientable {
2978
2928
  * Also see gtk_container_child_notify().
2979
2929
  * @param child_property the name of a child property installed on the class of `widget’`s parent
2980
2930
  */
2981
- child_notify(child_property: string | null): void
2931
+ child_notify(child_property: string): void
2982
2932
  /**
2983
2933
  * Emits a #GtkWidget::child-notify signal for the
2984
2934
  * [child property][child-properties] `child_property`
@@ -2989,7 +2939,7 @@ interface TabLabel extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orientable {
2989
2939
  * Also see gtk_container_child_notify().
2990
2940
  * @param child_property the name of a child property installed on the class of `widget’`s parent
2991
2941
  */
2992
- child_notify(child_property: string | null): void
2942
+ child_notify(child_property: string): void
2993
2943
 
2994
2944
  // Class property signals of Devhelp-3.0.Devhelp.TabLabel
2995
2945
 
@@ -3223,7 +3173,7 @@ interface WebView extends Atk.ImplementorIface, Gtk.Buildable {
3223
3173
  * (translated).
3224
3174
  * @returns the title of @view, suitable for a tab label or window title.
3225
3175
  */
3226
- get_devhelp_title(): string | null
3176
+ get_devhelp_title(): string
3227
3177
  get_profile(): Profile
3228
3178
  /**
3229
3179
  * Reset the text size to the normal size.
@@ -3308,7 +3258,7 @@ interface WebView extends Atk.ImplementorIface, Gtk.Buildable {
3308
3258
  * @param child the child widget
3309
3259
  * @param child_property the name of a child property installed on the class of `container`
3310
3260
  */
3311
- child_notify(child: Gtk.Widget, child_property: string | null): void
3261
+ child_notify(child: Gtk.Widget, child_property: string): void
3312
3262
 
3313
3263
  // Overloads of child_notify
3314
3264
 
@@ -3322,7 +3272,7 @@ interface WebView extends Atk.ImplementorIface, Gtk.Buildable {
3322
3272
  * Also see gtk_container_child_notify().
3323
3273
  * @param child_property the name of a child property installed on the class of `widget’`s parent
3324
3274
  */
3325
- child_notify(child_property: string | null): void
3275
+ child_notify(child_property: string): void
3326
3276
  /**
3327
3277
  * Emits a #GtkWidget::child-notify signal for the
3328
3278
  * [child property][child-properties] `child_property`
@@ -3333,11 +3283,11 @@ interface WebView extends Atk.ImplementorIface, Gtk.Buildable {
3333
3283
  * Also see gtk_container_child_notify().
3334
3284
  * @param child_property the name of a child property installed on the class of `widget’`s parent
3335
3285
  */
3336
- child_notify(child_property: string | null): void
3286
+ child_notify(child_property: string): void
3337
3287
 
3338
3288
  // Own virtual methods of Devhelp-3.0.Devhelp.WebView
3339
3289
 
3340
- vfunc_open_new_tab(uri: string | null): void
3290
+ vfunc_open_new_tab(uri: string): void
3341
3291
 
3342
3292
  // Own signals of Devhelp-3.0.Devhelp.WebView
3343
3293
 
@@ -3781,7 +3731,7 @@ interface Link {
3781
3731
  * @param page_id a page ID, i.e. the filename without its extension.
3782
3732
  * @returns whether @link belongs to @page_id.
3783
3733
  */
3784
- belongs_to_page(page_id: string | null): boolean
3734
+ belongs_to_page(page_id: string): boolean
3785
3735
  /**
3786
3736
  * Compares the links `a` and `b`. This function is used to determine in which
3787
3737
  * order the links should be displayed.
@@ -3789,18 +3739,18 @@ interface Link {
3789
3739
  * @returns an integer less than zero if @a should appear before @b; zero if there are no preferences; an integer greater than zero if @b should appear before @a.
3790
3740
  */
3791
3741
  compare(b: Link): number
3792
- get_book_id(): string | null
3793
- get_book_title(): string | null
3742
+ get_book_id(): string
3743
+ get_book_title(): string
3794
3744
  get_flags(): LinkFlags
3795
3745
  get_link_type(): LinkType
3796
- get_name(): string | null
3746
+ get_name(): string
3797
3747
  /**
3798
3748
  * Gets the `link` URI, by concateneting the book base path with the `link`
3799
3749
  * relative URL.
3800
3750
  * @returns the @link URI, or %NULL if getting the URI failed. Free with g_free() when no longer needed.
3801
3751
  */
3802
3752
  get_uri(): string | null
3803
- match_relative_url(relative_url: string | null): boolean
3753
+ match_relative_url(relative_url: string): boolean
3804
3754
  /**
3805
3755
  * Increases the reference count of `link`.
3806
3756
  *
@@ -3829,9 +3779,9 @@ class Link {
3829
3779
 
3830
3780
  // Constructors of Devhelp-3.0.Devhelp.Link
3831
3781
 
3832
- constructor(type: LinkType, book_link: Link, name: string | null, relative_url: string | null)
3833
- static new(type: LinkType, book_link: Link, name: string | null, relative_url: string | null): Link
3834
- static new_book(base_path: string | null, book_id: string | null, book_title: string | null, relative_url: string | null): Link
3782
+ constructor(type: LinkType, book_link: Link, name: string, relative_url: string)
3783
+ static new(type: LinkType, book_link: Link, name: string, relative_url: string): Link
3784
+ static new_book(base_path: string, book_id: string, book_title: string, relative_url: string): Link
3835
3785
  }
3836
3786
 
3837
3787
  interface NotebookClass {
@@ -4057,7 +4007,7 @@ interface WebViewClass {
4057
4007
  // Own fields of Devhelp-3.0.Devhelp.WebViewClass
4058
4008
 
4059
4009
  parent_class: WebKit2.WebViewClass
4060
- open_new_tab: (view: WebView, uri: string | null) => void
4010
+ open_new_tab: (view: WebView, uri: string) => void
4061
4011
  padding: any[]
4062
4012
  }
4063
4013
 
package/package.json CHANGED
@@ -1,13 +1,19 @@
1
1
  {
2
2
  "name": "@girs/devhelp-3.0",
3
- "version": "3.0.0-3.2.6",
3
+ "version": "3.0.0-3.2.8",
4
4
  "description": "GJS TypeScript type definitions for Devhelp-3.0, generated from library version 3.0.0",
5
5
  "type": "module",
6
6
  "module": "devhelp-3.0.js",
7
7
  "main": "devhelp-3.0.js",
8
8
  "exports": {
9
- "./ambient": "./devhelp-3.0-ambient.d.ts",
10
- "./import": "./devhelp-3.0-import.d.ts",
9
+ "./ambient": {
10
+ "types": "./devhelp-3.0-ambient.d.ts",
11
+ "default": "./devhelp-3.0-ambient.js"
12
+ },
13
+ "./import": {
14
+ "types": "./devhelp-3.0-import.d.ts",
15
+ "default": "./devhelp-3.0-import.js"
16
+ },
11
17
  ".": {
12
18
  "import": {
13
19
  "types": "./devhelp-3.0.d.ts",
@@ -25,23 +31,23 @@
25
31
  "test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit devhelp-3.0.d.cts"
26
32
  },
27
33
  "dependencies": {
28
- "@girs/atk-1.0": "^2.50.0-3.2.6",
29
- "@girs/cairo-1.0": "^1.0.0-3.2.6",
30
- "@girs/freetype2-2.0": "^2.0.0-3.2.6",
31
- "@girs/gdk-3.0": "^3.24.38-3.2.6",
32
- "@girs/gdkpixbuf-2.0": "^2.0.0-3.2.6",
33
- "@girs/gio-2.0": "^2.78.0-3.2.6",
34
- "@girs/gjs": "^3.2.6",
35
- "@girs/glib-2.0": "^2.78.0-3.2.6",
36
- "@girs/gmodule-2.0": "^2.0.0-3.2.6",
37
- "@girs/gobject-2.0": "^2.78.0-3.2.6",
38
- "@girs/gtk-3.0": "^3.24.38-3.2.6",
39
- "@girs/harfbuzz-0.0": "^8.2.1-3.2.6",
40
- "@girs/javascriptcore-4.1": "^2.40.0-3.2.6",
41
- "@girs/pango-1.0": "^1.51.0-3.2.6",
42
- "@girs/soup-3.0": "^3.4.4-3.2.6",
43
- "@girs/webkit2-4.1": "^2.41.90-3.2.6",
44
- "@girs/xlib-2.0": "^2.0.0-3.2.6"
34
+ "@girs/atk-1.0": "^2.45.1-3.2.8",
35
+ "@girs/cairo-1.0": "^1.0.0-3.2.8",
36
+ "@girs/freetype2-2.0": "^2.0.0-3.2.8",
37
+ "@girs/gdk-3.0": "^3.24.39-3.2.8",
38
+ "@girs/gdkpixbuf-2.0": "^2.0.0-3.2.8",
39
+ "@girs/gio-2.0": "^2.77.0-3.2.8",
40
+ "@girs/gjs": "^3.2.8",
41
+ "@girs/glib-2.0": "^2.77.0-3.2.8",
42
+ "@girs/gmodule-2.0": "^2.0.0-3.2.8",
43
+ "@girs/gobject-2.0": "^2.77.0-3.2.8",
44
+ "@girs/gtk-3.0": "^3.24.39-3.2.8",
45
+ "@girs/harfbuzz-0.0": "^8.1.1-3.2.8",
46
+ "@girs/javascriptcore-4.1": "^2.40.0-3.2.8",
47
+ "@girs/pango-1.0": "^1.51.0-3.2.8",
48
+ "@girs/soup-3.0": "^3.4.2-3.2.8",
49
+ "@girs/webkit2-4.1": "^2.41.90-3.2.8",
50
+ "@girs/xlib-2.0": "^2.0.0-3.2.8"
45
51
  },
46
52
  "devDependencies": {
47
53
  "typescript": "*"
@@ -58,7 +64,7 @@
58
64
  "license": "MIT",
59
65
  "repository": {
60
66
  "type": "git",
61
- "url": "git+https://github.com/gjsify/types.git"
67
+ "url": "git+https://github.com/gjsify/ts-for-gir.git"
62
68
  },
63
69
  "bugs": {
64
70
  "url": "https://github.com/gjsify/ts-for-gir/issues"