@girs/devhelp-3.0 3.0.0-3.2.5 → 3.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/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.5.
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.7.
9
9
 
10
10
 
11
11
  ## Install
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
 
@@ -2079,6 +2079,26 @@ export module Settings {
2079
2079
  * This property is independent of #DhSettings:use-system-fonts.
2080
2080
  */
2081
2081
  variable_font?: string | null
2082
+ /**
2083
+ * Font for text with fixed width, such as code examples.
2084
+ *
2085
+ * This property is independent of #DhSettings:use-system-fonts.
2086
+ */
2087
+ fixedFont?: string | null
2088
+ /**
2089
+ * Whether books should be grouped by programming language in the UI.
2090
+ */
2091
+ groupBooksByLanguage?: boolean | null
2092
+ /**
2093
+ * Whether to use the system default fonts.
2094
+ */
2095
+ useSystemFonts?: boolean | null
2096
+ /**
2097
+ * Font for text with variable width.
2098
+ *
2099
+ * This property is independent of #DhSettings:use-system-fonts.
2100
+ */
2101
+ variableFont?: string | null
2082
2102
  }
2083
2103
 
2084
2104
  }
@@ -2093,20 +2113,40 @@ export interface Settings {
2093
2113
  * This property is independent of #DhSettings:use-system-fonts.
2094
2114
  */
2095
2115
  fixed_font: string | null
2116
+ /**
2117
+ * Font for text with fixed width, such as code examples.
2118
+ *
2119
+ * This property is independent of #DhSettings:use-system-fonts.
2120
+ */
2121
+ fixedFont: string | null
2096
2122
  /**
2097
2123
  * Whether books should be grouped by programming language in the UI.
2098
2124
  */
2099
2125
  group_books_by_language: boolean
2126
+ /**
2127
+ * Whether books should be grouped by programming language in the UI.
2128
+ */
2129
+ groupBooksByLanguage: boolean
2100
2130
  /**
2101
2131
  * Whether to use the system default fonts.
2102
2132
  */
2103
2133
  use_system_fonts: boolean
2134
+ /**
2135
+ * Whether to use the system default fonts.
2136
+ */
2137
+ useSystemFonts: boolean
2104
2138
  /**
2105
2139
  * Font for text with variable width.
2106
2140
  *
2107
2141
  * This property is independent of #DhSettings:use-system-fonts.
2108
2142
  */
2109
2143
  variable_font: string | null
2144
+ /**
2145
+ * Font for text with variable width.
2146
+ *
2147
+ * This property is independent of #DhSettings:use-system-fonts.
2148
+ */
2149
+ variableFont: string | null
2110
2150
 
2111
2151
  // Own fields of Devhelp-3.0.Devhelp.Settings
2112
2152
 
@@ -2145,7 +2185,7 @@ export interface Settings {
2145
2185
  * property.
2146
2186
  * @returns the value of the #DhSettings:fixed-font property.
2147
2187
  */
2148
- get_fixed_font(): string | null
2188
+ get_fixed_font(): string
2149
2189
  get_group_books_by_language(): boolean
2150
2190
  /**
2151
2191
  * If #DhSettings:use-system-fonts is %TRUE, returns the system fonts. Otherwise
@@ -2160,7 +2200,7 @@ export interface Settings {
2160
2200
  * property.
2161
2201
  * @returns the value of the #DhSettings:variable-font property.
2162
2202
  */
2163
- get_variable_font(): string | null
2203
+ get_variable_font(): string
2164
2204
  /**
2165
2205
  * Returns whether `book` is enabled according to the "books-disabled" #GSettings
2166
2206
  * key. If the `book` ID is present in "books-disabled", this function returns
@@ -2180,7 +2220,7 @@ export interface Settings {
2180
2220
  * Sets the #DhSettings:fixed-font property.
2181
2221
  * @param fixed_font the new value.
2182
2222
  */
2183
- set_fixed_font(fixed_font: string | null): void
2223
+ set_fixed_font(fixed_font: string): void
2184
2224
  /**
2185
2225
  * Sets the #DhSettings:group-books-by-language property.
2186
2226
  * @param group_books_by_language the new value.
@@ -2195,7 +2235,7 @@ export interface Settings {
2195
2235
  * Sets the #DhSettings:variable-font property.
2196
2236
  * @param variable_font the new value.
2197
2237
  */
2198
- set_variable_font(variable_font: string | null): void
2238
+ set_variable_font(variable_font: string): void
2199
2239
  /**
2200
2240
  * Stops the effect of dh_settings_freeze_books_disabled_changed(), and emits
2201
2241
  * the #DhSettings::books-disabled-changed signal.
@@ -2283,7 +2323,7 @@ export interface SettingsBuilder {
2283
2323
  * used.
2284
2324
  * @param contents_path the path for the "contents" schema.
2285
2325
  */
2286
- set_contents_path(contents_path: string | null): void
2326
+ set_contents_path(contents_path: string): void
2287
2327
  /**
2288
2328
  * Sets the path for the "fonts" schema.
2289
2329
  *
@@ -2291,7 +2331,7 @@ export interface SettingsBuilder {
2291
2331
  * used.
2292
2332
  * @param fonts_path the path for the "fonts" schema.
2293
2333
  */
2294
- set_fonts_path(fonts_path: string | null): void
2334
+ set_fonts_path(fonts_path: string): void
2295
2335
 
2296
2336
  // Class property signals of Devhelp-3.0.Devhelp.SettingsBuilder
2297
2337
 
@@ -2371,12 +2411,12 @@ export interface Sidebar extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orient
2371
2411
  * Calls dh_book_tree_select_uri().
2372
2412
  * @param uri the URI to select.
2373
2413
  */
2374
- select_uri(uri: string | null): void
2414
+ select_uri(uri: string): void
2375
2415
  /**
2376
2416
  * Gives the focus to the search entry.
2377
2417
  */
2378
2418
  set_search_focus(): void
2379
- set_search_string(str: string | null): void
2419
+ set_search_string(str: string): void
2380
2420
 
2381
2421
  // Conflicting methods
2382
2422
 
@@ -2391,7 +2431,7 @@ export interface Sidebar extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orient
2391
2431
  * @param child the child widget
2392
2432
  * @param child_property the name of a child property installed on the class of `container`
2393
2433
  */
2394
- child_notify(child: Gtk.Widget, child_property: string | null): void
2434
+ child_notify(child: Gtk.Widget, child_property: string): void
2395
2435
 
2396
2436
  // Overloads of child_notify
2397
2437
 
@@ -2405,7 +2445,7 @@ export interface Sidebar extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orient
2405
2445
  * Also see gtk_container_child_notify().
2406
2446
  * @param child_property the name of a child property installed on the class of `widget’`s parent
2407
2447
  */
2408
- child_notify(child_property: string | null): void
2448
+ child_notify(child_property: string): void
2409
2449
  /**
2410
2450
  * Emits a #GtkWidget::child-notify signal for the
2411
2451
  * [child property][child-properties] `child_property`
@@ -2416,7 +2456,7 @@ export interface Sidebar extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orient
2416
2456
  * Also see gtk_container_child_notify().
2417
2457
  * @param child_property the name of a child property installed on the class of `widget’`s parent
2418
2458
  */
2419
- child_notify(child_property: string | null): void
2459
+ child_notify(child_property: string): void
2420
2460
 
2421
2461
  // Own virtual methods of Devhelp-3.0.Devhelp.Sidebar
2422
2462
 
@@ -2621,6 +2661,11 @@ export module Tab {
2621
2661
  * with the default #DhProfile.
2622
2662
  */
2623
2663
  web_view?: WebView | null
2664
+ /**
2665
+ * The #DhWebView of the tab. If set to %NULL a #DhWebView is created
2666
+ * with the default #DhProfile.
2667
+ */
2668
+ webView?: WebView | null
2624
2669
  }
2625
2670
 
2626
2671
  }
@@ -2634,6 +2679,11 @@ export interface Tab extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orientable
2634
2679
  * with the default #DhProfile.
2635
2680
  */
2636
2681
  readonly web_view: WebView
2682
+ /**
2683
+ * The #DhWebView of the tab. If set to %NULL a #DhWebView is created
2684
+ * with the default #DhProfile.
2685
+ */
2686
+ readonly webView: WebView
2637
2687
 
2638
2688
  // Own fields of Devhelp-3.0.Devhelp.Tab
2639
2689
 
@@ -2657,7 +2707,7 @@ export interface Tab extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orientable
2657
2707
  * @param child the child widget
2658
2708
  * @param child_property the name of a child property installed on the class of `container`
2659
2709
  */
2660
- child_notify(child: Gtk.Widget, child_property: string | null): void
2710
+ child_notify(child: Gtk.Widget, child_property: string): void
2661
2711
 
2662
2712
  // Overloads of child_notify
2663
2713
 
@@ -2671,7 +2721,7 @@ export interface Tab extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orientable
2671
2721
  * Also see gtk_container_child_notify().
2672
2722
  * @param child_property the name of a child property installed on the class of `widget’`s parent
2673
2723
  */
2674
- child_notify(child_property: string | null): void
2724
+ child_notify(child_property: string): void
2675
2725
  /**
2676
2726
  * Emits a #GtkWidget::child-notify signal for the
2677
2727
  * [child property][child-properties] `child_property`
@@ -2682,7 +2732,7 @@ export interface Tab extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orientable
2682
2732
  * Also see gtk_container_child_notify().
2683
2733
  * @param child_property the name of a child property installed on the class of `widget’`s parent
2684
2734
  */
2685
- child_notify(child_property: string | null): void
2735
+ child_notify(child_property: string): void
2686
2736
 
2687
2737
  // Class property signals of Devhelp-3.0.Devhelp.Tab
2688
2738
 
@@ -2912,7 +2962,7 @@ export interface TabLabel extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orien
2912
2962
  * @param child the child widget
2913
2963
  * @param child_property the name of a child property installed on the class of `container`
2914
2964
  */
2915
- child_notify(child: Gtk.Widget, child_property: string | null): void
2965
+ child_notify(child: Gtk.Widget, child_property: string): void
2916
2966
 
2917
2967
  // Overloads of child_notify
2918
2968
 
@@ -2926,7 +2976,7 @@ export interface TabLabel extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orien
2926
2976
  * Also see gtk_container_child_notify().
2927
2977
  * @param child_property the name of a child property installed on the class of `widget’`s parent
2928
2978
  */
2929
- child_notify(child_property: string | null): void
2979
+ child_notify(child_property: string): void
2930
2980
  /**
2931
2981
  * Emits a #GtkWidget::child-notify signal for the
2932
2982
  * [child property][child-properties] `child_property`
@@ -2937,7 +2987,7 @@ export interface TabLabel extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orien
2937
2987
  * Also see gtk_container_child_notify().
2938
2988
  * @param child_property the name of a child property installed on the class of `widget’`s parent
2939
2989
  */
2940
- child_notify(child_property: string | null): void
2990
+ child_notify(child_property: string): void
2941
2991
 
2942
2992
  // Class property signals of Devhelp-3.0.Devhelp.TabLabel
2943
2993
 
@@ -3171,7 +3221,7 @@ export interface WebView extends Atk.ImplementorIface, Gtk.Buildable {
3171
3221
  * (translated).
3172
3222
  * @returns the title of @view, suitable for a tab label or window title.
3173
3223
  */
3174
- get_devhelp_title(): string | null
3224
+ get_devhelp_title(): string
3175
3225
  get_profile(): Profile
3176
3226
  /**
3177
3227
  * Reset the text size to the normal size.
@@ -3256,7 +3306,7 @@ export interface WebView extends Atk.ImplementorIface, Gtk.Buildable {
3256
3306
  * @param child the child widget
3257
3307
  * @param child_property the name of a child property installed on the class of `container`
3258
3308
  */
3259
- child_notify(child: Gtk.Widget, child_property: string | null): void
3309
+ child_notify(child: Gtk.Widget, child_property: string): void
3260
3310
 
3261
3311
  // Overloads of child_notify
3262
3312
 
@@ -3270,7 +3320,7 @@ export interface WebView extends Atk.ImplementorIface, Gtk.Buildable {
3270
3320
  * Also see gtk_container_child_notify().
3271
3321
  * @param child_property the name of a child property installed on the class of `widget’`s parent
3272
3322
  */
3273
- child_notify(child_property: string | null): void
3323
+ child_notify(child_property: string): void
3274
3324
  /**
3275
3325
  * Emits a #GtkWidget::child-notify signal for the
3276
3326
  * [child property][child-properties] `child_property`
@@ -3281,11 +3331,11 @@ export interface WebView extends Atk.ImplementorIface, Gtk.Buildable {
3281
3331
  * Also see gtk_container_child_notify().
3282
3332
  * @param child_property the name of a child property installed on the class of `widget’`s parent
3283
3333
  */
3284
- child_notify(child_property: string | null): void
3334
+ child_notify(child_property: string): void
3285
3335
 
3286
3336
  // Own virtual methods of Devhelp-3.0.Devhelp.WebView
3287
3337
 
3288
- vfunc_open_new_tab(uri: string | null): void
3338
+ vfunc_open_new_tab(uri: string): void
3289
3339
 
3290
3340
  // Own signals of Devhelp-3.0.Devhelp.WebView
3291
3341
 
@@ -3729,7 +3779,7 @@ export interface Link {
3729
3779
  * @param page_id a page ID, i.e. the filename without its extension.
3730
3780
  * @returns whether @link belongs to @page_id.
3731
3781
  */
3732
- belongs_to_page(page_id: string | null): boolean
3782
+ belongs_to_page(page_id: string): boolean
3733
3783
  /**
3734
3784
  * Compares the links `a` and `b`. This function is used to determine in which
3735
3785
  * order the links should be displayed.
@@ -3737,18 +3787,18 @@ export interface Link {
3737
3787
  * @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.
3738
3788
  */
3739
3789
  compare(b: Link): number
3740
- get_book_id(): string | null
3741
- get_book_title(): string | null
3790
+ get_book_id(): string
3791
+ get_book_title(): string
3742
3792
  get_flags(): LinkFlags
3743
3793
  get_link_type(): LinkType
3744
- get_name(): string | null
3794
+ get_name(): string
3745
3795
  /**
3746
3796
  * Gets the `link` URI, by concateneting the book base path with the `link`
3747
3797
  * relative URL.
3748
3798
  * @returns the @link URI, or %NULL if getting the URI failed. Free with g_free() when no longer needed.
3749
3799
  */
3750
3800
  get_uri(): string | null
3751
- match_relative_url(relative_url: string | null): boolean
3801
+ match_relative_url(relative_url: string): boolean
3752
3802
  /**
3753
3803
  * Increases the reference count of `link`.
3754
3804
  *
@@ -3777,9 +3827,9 @@ export class Link {
3777
3827
 
3778
3828
  // Constructors of Devhelp-3.0.Devhelp.Link
3779
3829
 
3780
- constructor(type: LinkType, book_link: Link, name: string | null, relative_url: string | null)
3781
- static new(type: LinkType, book_link: Link, name: string | null, relative_url: string | null): Link
3782
- static new_book(base_path: string | null, book_id: string | null, book_title: string | null, relative_url: string | null): Link
3830
+ constructor(type: LinkType, book_link: Link, name: string, relative_url: string)
3831
+ static new(type: LinkType, book_link: Link, name: string, relative_url: string): Link
3832
+ static new_book(base_path: string, book_id: string, book_title: string, relative_url: string): Link
3783
3833
  }
3784
3834
 
3785
3835
  export interface NotebookClass {
@@ -4005,7 +4055,7 @@ export interface WebViewClass {
4005
4055
  // Own fields of Devhelp-3.0.Devhelp.WebViewClass
4006
4056
 
4007
4057
  parent_class: WebKit2.WebViewClass
4008
- open_new_tab: (view: WebView, uri: string | null) => void
4058
+ open_new_tab: (view: WebView, uri: string) => void
4009
4059
  padding: any[]
4010
4060
  }
4011
4061
 
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
 
@@ -2081,6 +2081,26 @@ module Settings {
2081
2081
  * This property is independent of #DhSettings:use-system-fonts.
2082
2082
  */
2083
2083
  variable_font?: string | null
2084
+ /**
2085
+ * Font for text with fixed width, such as code examples.
2086
+ *
2087
+ * This property is independent of #DhSettings:use-system-fonts.
2088
+ */
2089
+ fixedFont?: string | null
2090
+ /**
2091
+ * Whether books should be grouped by programming language in the UI.
2092
+ */
2093
+ groupBooksByLanguage?: boolean | null
2094
+ /**
2095
+ * Whether to use the system default fonts.
2096
+ */
2097
+ useSystemFonts?: boolean | null
2098
+ /**
2099
+ * Font for text with variable width.
2100
+ *
2101
+ * This property is independent of #DhSettings:use-system-fonts.
2102
+ */
2103
+ variableFont?: string | null
2084
2104
  }
2085
2105
 
2086
2106
  }
@@ -2095,20 +2115,40 @@ interface Settings {
2095
2115
  * This property is independent of #DhSettings:use-system-fonts.
2096
2116
  */
2097
2117
  fixed_font: string | null
2118
+ /**
2119
+ * Font for text with fixed width, such as code examples.
2120
+ *
2121
+ * This property is independent of #DhSettings:use-system-fonts.
2122
+ */
2123
+ fixedFont: string | null
2098
2124
  /**
2099
2125
  * Whether books should be grouped by programming language in the UI.
2100
2126
  */
2101
2127
  group_books_by_language: boolean
2128
+ /**
2129
+ * Whether books should be grouped by programming language in the UI.
2130
+ */
2131
+ groupBooksByLanguage: boolean
2102
2132
  /**
2103
2133
  * Whether to use the system default fonts.
2104
2134
  */
2105
2135
  use_system_fonts: boolean
2136
+ /**
2137
+ * Whether to use the system default fonts.
2138
+ */
2139
+ useSystemFonts: boolean
2106
2140
  /**
2107
2141
  * Font for text with variable width.
2108
2142
  *
2109
2143
  * This property is independent of #DhSettings:use-system-fonts.
2110
2144
  */
2111
2145
  variable_font: string | null
2146
+ /**
2147
+ * Font for text with variable width.
2148
+ *
2149
+ * This property is independent of #DhSettings:use-system-fonts.
2150
+ */
2151
+ variableFont: string | null
2112
2152
 
2113
2153
  // Own fields of Devhelp-3.0.Devhelp.Settings
2114
2154
 
@@ -2147,7 +2187,7 @@ interface Settings {
2147
2187
  * property.
2148
2188
  * @returns the value of the #DhSettings:fixed-font property.
2149
2189
  */
2150
- get_fixed_font(): string | null
2190
+ get_fixed_font(): string
2151
2191
  get_group_books_by_language(): boolean
2152
2192
  /**
2153
2193
  * If #DhSettings:use-system-fonts is %TRUE, returns the system fonts. Otherwise
@@ -2162,7 +2202,7 @@ interface Settings {
2162
2202
  * property.
2163
2203
  * @returns the value of the #DhSettings:variable-font property.
2164
2204
  */
2165
- get_variable_font(): string | null
2205
+ get_variable_font(): string
2166
2206
  /**
2167
2207
  * Returns whether `book` is enabled according to the "books-disabled" #GSettings
2168
2208
  * key. If the `book` ID is present in "books-disabled", this function returns
@@ -2182,7 +2222,7 @@ interface Settings {
2182
2222
  * Sets the #DhSettings:fixed-font property.
2183
2223
  * @param fixed_font the new value.
2184
2224
  */
2185
- set_fixed_font(fixed_font: string | null): void
2225
+ set_fixed_font(fixed_font: string): void
2186
2226
  /**
2187
2227
  * Sets the #DhSettings:group-books-by-language property.
2188
2228
  * @param group_books_by_language the new value.
@@ -2197,7 +2237,7 @@ interface Settings {
2197
2237
  * Sets the #DhSettings:variable-font property.
2198
2238
  * @param variable_font the new value.
2199
2239
  */
2200
- set_variable_font(variable_font: string | null): void
2240
+ set_variable_font(variable_font: string): void
2201
2241
  /**
2202
2242
  * Stops the effect of dh_settings_freeze_books_disabled_changed(), and emits
2203
2243
  * the #DhSettings::books-disabled-changed signal.
@@ -2285,7 +2325,7 @@ interface SettingsBuilder {
2285
2325
  * used.
2286
2326
  * @param contents_path the path for the "contents" schema.
2287
2327
  */
2288
- set_contents_path(contents_path: string | null): void
2328
+ set_contents_path(contents_path: string): void
2289
2329
  /**
2290
2330
  * Sets the path for the "fonts" schema.
2291
2331
  *
@@ -2293,7 +2333,7 @@ interface SettingsBuilder {
2293
2333
  * used.
2294
2334
  * @param fonts_path the path for the "fonts" schema.
2295
2335
  */
2296
- set_fonts_path(fonts_path: string | null): void
2336
+ set_fonts_path(fonts_path: string): void
2297
2337
 
2298
2338
  // Class property signals of Devhelp-3.0.Devhelp.SettingsBuilder
2299
2339
 
@@ -2373,12 +2413,12 @@ interface Sidebar extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orientable {
2373
2413
  * Calls dh_book_tree_select_uri().
2374
2414
  * @param uri the URI to select.
2375
2415
  */
2376
- select_uri(uri: string | null): void
2416
+ select_uri(uri: string): void
2377
2417
  /**
2378
2418
  * Gives the focus to the search entry.
2379
2419
  */
2380
2420
  set_search_focus(): void
2381
- set_search_string(str: string | null): void
2421
+ set_search_string(str: string): void
2382
2422
 
2383
2423
  // Conflicting methods
2384
2424
 
@@ -2393,7 +2433,7 @@ interface Sidebar extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orientable {
2393
2433
  * @param child the child widget
2394
2434
  * @param child_property the name of a child property installed on the class of `container`
2395
2435
  */
2396
- child_notify(child: Gtk.Widget, child_property: string | null): void
2436
+ child_notify(child: Gtk.Widget, child_property: string): void
2397
2437
 
2398
2438
  // Overloads of child_notify
2399
2439
 
@@ -2407,7 +2447,7 @@ interface Sidebar extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orientable {
2407
2447
  * Also see gtk_container_child_notify().
2408
2448
  * @param child_property the name of a child property installed on the class of `widget’`s parent
2409
2449
  */
2410
- child_notify(child_property: string | null): void
2450
+ child_notify(child_property: string): void
2411
2451
  /**
2412
2452
  * Emits a #GtkWidget::child-notify signal for the
2413
2453
  * [child property][child-properties] `child_property`
@@ -2418,7 +2458,7 @@ interface Sidebar extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orientable {
2418
2458
  * Also see gtk_container_child_notify().
2419
2459
  * @param child_property the name of a child property installed on the class of `widget’`s parent
2420
2460
  */
2421
- child_notify(child_property: string | null): void
2461
+ child_notify(child_property: string): void
2422
2462
 
2423
2463
  // Own virtual methods of Devhelp-3.0.Devhelp.Sidebar
2424
2464
 
@@ -2623,6 +2663,11 @@ module Tab {
2623
2663
  * with the default #DhProfile.
2624
2664
  */
2625
2665
  web_view?: WebView | null
2666
+ /**
2667
+ * The #DhWebView of the tab. If set to %NULL a #DhWebView is created
2668
+ * with the default #DhProfile.
2669
+ */
2670
+ webView?: WebView | null
2626
2671
  }
2627
2672
 
2628
2673
  }
@@ -2636,6 +2681,11 @@ interface Tab extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orientable {
2636
2681
  * with the default #DhProfile.
2637
2682
  */
2638
2683
  readonly web_view: WebView
2684
+ /**
2685
+ * The #DhWebView of the tab. If set to %NULL a #DhWebView is created
2686
+ * with the default #DhProfile.
2687
+ */
2688
+ readonly webView: WebView
2639
2689
 
2640
2690
  // Own fields of Devhelp-3.0.Devhelp.Tab
2641
2691
 
@@ -2659,7 +2709,7 @@ interface Tab extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orientable {
2659
2709
  * @param child the child widget
2660
2710
  * @param child_property the name of a child property installed on the class of `container`
2661
2711
  */
2662
- child_notify(child: Gtk.Widget, child_property: string | null): void
2712
+ child_notify(child: Gtk.Widget, child_property: string): void
2663
2713
 
2664
2714
  // Overloads of child_notify
2665
2715
 
@@ -2673,7 +2723,7 @@ interface Tab extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orientable {
2673
2723
  * Also see gtk_container_child_notify().
2674
2724
  * @param child_property the name of a child property installed on the class of `widget’`s parent
2675
2725
  */
2676
- child_notify(child_property: string | null): void
2726
+ child_notify(child_property: string): void
2677
2727
  /**
2678
2728
  * Emits a #GtkWidget::child-notify signal for the
2679
2729
  * [child property][child-properties] `child_property`
@@ -2684,7 +2734,7 @@ interface Tab extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orientable {
2684
2734
  * Also see gtk_container_child_notify().
2685
2735
  * @param child_property the name of a child property installed on the class of `widget’`s parent
2686
2736
  */
2687
- child_notify(child_property: string | null): void
2737
+ child_notify(child_property: string): void
2688
2738
 
2689
2739
  // Class property signals of Devhelp-3.0.Devhelp.Tab
2690
2740
 
@@ -2914,7 +2964,7 @@ interface TabLabel extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orientable {
2914
2964
  * @param child the child widget
2915
2965
  * @param child_property the name of a child property installed on the class of `container`
2916
2966
  */
2917
- child_notify(child: Gtk.Widget, child_property: string | null): void
2967
+ child_notify(child: Gtk.Widget, child_property: string): void
2918
2968
 
2919
2969
  // Overloads of child_notify
2920
2970
 
@@ -2928,7 +2978,7 @@ interface TabLabel extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orientable {
2928
2978
  * Also see gtk_container_child_notify().
2929
2979
  * @param child_property the name of a child property installed on the class of `widget’`s parent
2930
2980
  */
2931
- child_notify(child_property: string | null): void
2981
+ child_notify(child_property: string): void
2932
2982
  /**
2933
2983
  * Emits a #GtkWidget::child-notify signal for the
2934
2984
  * [child property][child-properties] `child_property`
@@ -2939,7 +2989,7 @@ interface TabLabel extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orientable {
2939
2989
  * Also see gtk_container_child_notify().
2940
2990
  * @param child_property the name of a child property installed on the class of `widget’`s parent
2941
2991
  */
2942
- child_notify(child_property: string | null): void
2992
+ child_notify(child_property: string): void
2943
2993
 
2944
2994
  // Class property signals of Devhelp-3.0.Devhelp.TabLabel
2945
2995
 
@@ -3173,7 +3223,7 @@ interface WebView extends Atk.ImplementorIface, Gtk.Buildable {
3173
3223
  * (translated).
3174
3224
  * @returns the title of @view, suitable for a tab label or window title.
3175
3225
  */
3176
- get_devhelp_title(): string | null
3226
+ get_devhelp_title(): string
3177
3227
  get_profile(): Profile
3178
3228
  /**
3179
3229
  * Reset the text size to the normal size.
@@ -3258,7 +3308,7 @@ interface WebView extends Atk.ImplementorIface, Gtk.Buildable {
3258
3308
  * @param child the child widget
3259
3309
  * @param child_property the name of a child property installed on the class of `container`
3260
3310
  */
3261
- child_notify(child: Gtk.Widget, child_property: string | null): void
3311
+ child_notify(child: Gtk.Widget, child_property: string): void
3262
3312
 
3263
3313
  // Overloads of child_notify
3264
3314
 
@@ -3272,7 +3322,7 @@ interface WebView extends Atk.ImplementorIface, Gtk.Buildable {
3272
3322
  * Also see gtk_container_child_notify().
3273
3323
  * @param child_property the name of a child property installed on the class of `widget’`s parent
3274
3324
  */
3275
- child_notify(child_property: string | null): void
3325
+ child_notify(child_property: string): void
3276
3326
  /**
3277
3327
  * Emits a #GtkWidget::child-notify signal for the
3278
3328
  * [child property][child-properties] `child_property`
@@ -3283,11 +3333,11 @@ interface WebView extends Atk.ImplementorIface, Gtk.Buildable {
3283
3333
  * Also see gtk_container_child_notify().
3284
3334
  * @param child_property the name of a child property installed on the class of `widget’`s parent
3285
3335
  */
3286
- child_notify(child_property: string | null): void
3336
+ child_notify(child_property: string): void
3287
3337
 
3288
3338
  // Own virtual methods of Devhelp-3.0.Devhelp.WebView
3289
3339
 
3290
- vfunc_open_new_tab(uri: string | null): void
3340
+ vfunc_open_new_tab(uri: string): void
3291
3341
 
3292
3342
  // Own signals of Devhelp-3.0.Devhelp.WebView
3293
3343
 
@@ -3731,7 +3781,7 @@ interface Link {
3731
3781
  * @param page_id a page ID, i.e. the filename without its extension.
3732
3782
  * @returns whether @link belongs to @page_id.
3733
3783
  */
3734
- belongs_to_page(page_id: string | null): boolean
3784
+ belongs_to_page(page_id: string): boolean
3735
3785
  /**
3736
3786
  * Compares the links `a` and `b`. This function is used to determine in which
3737
3787
  * order the links should be displayed.
@@ -3739,18 +3789,18 @@ interface Link {
3739
3789
  * @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.
3740
3790
  */
3741
3791
  compare(b: Link): number
3742
- get_book_id(): string | null
3743
- get_book_title(): string | null
3792
+ get_book_id(): string
3793
+ get_book_title(): string
3744
3794
  get_flags(): LinkFlags
3745
3795
  get_link_type(): LinkType
3746
- get_name(): string | null
3796
+ get_name(): string
3747
3797
  /**
3748
3798
  * Gets the `link` URI, by concateneting the book base path with the `link`
3749
3799
  * relative URL.
3750
3800
  * @returns the @link URI, or %NULL if getting the URI failed. Free with g_free() when no longer needed.
3751
3801
  */
3752
3802
  get_uri(): string | null
3753
- match_relative_url(relative_url: string | null): boolean
3803
+ match_relative_url(relative_url: string): boolean
3754
3804
  /**
3755
3805
  * Increases the reference count of `link`.
3756
3806
  *
@@ -3779,9 +3829,9 @@ class Link {
3779
3829
 
3780
3830
  // Constructors of Devhelp-3.0.Devhelp.Link
3781
3831
 
3782
- constructor(type: LinkType, book_link: Link, name: string | null, relative_url: string | null)
3783
- static new(type: LinkType, book_link: Link, name: string | null, relative_url: string | null): Link
3784
- static new_book(base_path: string | null, book_id: string | null, book_title: string | null, relative_url: string | null): Link
3832
+ constructor(type: LinkType, book_link: Link, name: string, relative_url: string)
3833
+ static new(type: LinkType, book_link: Link, name: string, relative_url: string): Link
3834
+ static new_book(base_path: string, book_id: string, book_title: string, relative_url: string): Link
3785
3835
  }
3786
3836
 
3787
3837
  interface NotebookClass {
@@ -4007,7 +4057,7 @@ interface WebViewClass {
4007
4057
  // Own fields of Devhelp-3.0.Devhelp.WebViewClass
4008
4058
 
4009
4059
  parent_class: WebKit2.WebViewClass
4010
- open_new_tab: (view: WebView, uri: string | null) => void
4060
+ open_new_tab: (view: WebView, uri: string) => void
4011
4061
  padding: any[]
4012
4062
  }
4013
4063
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/devhelp-3.0",
3
- "version": "3.0.0-3.2.5",
3
+ "version": "3.0.0-3.2.7",
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",
@@ -25,23 +25,23 @@
25
25
  "test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit devhelp-3.0.d.cts"
26
26
  },
27
27
  "dependencies": {
28
- "@girs/atk-1.0": "^2.50.0-3.2.5",
29
- "@girs/cairo-1.0": "^1.0.0-3.2.5",
30
- "@girs/freetype2-2.0": "^2.0.0-3.2.5",
31
- "@girs/gdk-3.0": "^3.24.38-3.2.5",
32
- "@girs/gdkpixbuf-2.0": "^2.0.0-3.2.5",
33
- "@girs/gio-2.0": "^2.78.0-3.2.5",
34
- "@girs/gjs": "^3.2.5",
35
- "@girs/glib-2.0": "^2.78.0-3.2.5",
36
- "@girs/gmodule-2.0": "^2.0.0-3.2.5",
37
- "@girs/gobject-2.0": "^2.78.0-3.2.5",
38
- "@girs/gtk-3.0": "^3.24.38-3.2.5",
39
- "@girs/harfbuzz-0.0": "^8.2.1-3.2.5",
40
- "@girs/javascriptcore-4.1": "^2.40.0-3.2.5",
41
- "@girs/pango-1.0": "^1.51.0-3.2.5",
42
- "@girs/soup-3.0": "^3.4.4-3.2.5",
43
- "@girs/webkit2-4.1": "^2.41.90-3.2.5",
44
- "@girs/xlib-2.0": "^2.0.0-3.2.5"
28
+ "@girs/atk-1.0": "^2.50.0-3.2.7",
29
+ "@girs/cairo-1.0": "^1.0.0-3.2.7",
30
+ "@girs/freetype2-2.0": "^2.0.0-3.2.7",
31
+ "@girs/gdk-3.0": "^3.24.38-3.2.7",
32
+ "@girs/gdkpixbuf-2.0": "^2.0.0-3.2.7",
33
+ "@girs/gio-2.0": "^2.78.0-3.2.7",
34
+ "@girs/gjs": "^3.2.7",
35
+ "@girs/glib-2.0": "^2.78.0-3.2.7",
36
+ "@girs/gmodule-2.0": "^2.0.0-3.2.7",
37
+ "@girs/gobject-2.0": "^2.78.0-3.2.7",
38
+ "@girs/gtk-3.0": "^3.24.38-3.2.7",
39
+ "@girs/harfbuzz-0.0": "^8.2.1-3.2.7",
40
+ "@girs/javascriptcore-4.1": "^2.40.0-3.2.7",
41
+ "@girs/pango-1.0": "^1.51.0-3.2.7",
42
+ "@girs/soup-3.0": "^3.4.4-3.2.7",
43
+ "@girs/webkit2-4.1": "^2.41.90-3.2.7",
44
+ "@girs/xlib-2.0": "^2.0.0-3.2.7"
45
45
  },
46
46
  "devDependencies": {
47
47
  "typescript": "*"