@girs/gspell-1 1.0.0-3.2.6 → 1.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/gspell-1)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for Gspell-1, generated from library version 1.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.6.
8
+ GJS TypeScript type definitions for Gspell-1, generated from library version 1.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/gspell-1.d.cts CHANGED
@@ -47,7 +47,7 @@ export function language_get_available(): Language[]
47
47
  * @returns the default #GspellLanguage, or %NULL if no dictionaries are available.
48
48
  */
49
49
  export function language_get_default(): Language | null
50
- export function language_lookup(language_code: string | null): Language | null
50
+ export function language_lookup(language_code: string): Language | null
51
51
  export module LanguageChooser {
52
52
 
53
53
  // Constructor properties interface
@@ -60,12 +60,6 @@ export module LanguageChooser {
60
60
  * The selected #GspellLanguage.
61
61
  */
62
62
  language?: Language | null
63
- /**
64
- * The empty string if the default language was set and the selection
65
- * hasn't changed. Or the language code if an explicit language was set
66
- * or if the selection has changed.
67
- */
68
- language_code?: string | null
69
63
  /**
70
64
  * The empty string if the default language was set and the selection
71
65
  * hasn't changed. Or the language code if an explicit language was set
@@ -84,12 +78,6 @@ export interface LanguageChooser {
84
78
  * The selected #GspellLanguage.
85
79
  */
86
80
  language: Language
87
- /**
88
- * The empty string if the default language was set and the selection
89
- * hasn't changed. Or the language code if an explicit language was set
90
- * or if the selection has changed.
91
- */
92
- language_code: string | null
93
81
  /**
94
82
  * The empty string if the default language was set and the selection
95
83
  * hasn't changed. Or the language code if an explicit language was set
@@ -100,7 +88,7 @@ export interface LanguageChooser {
100
88
  // Owm methods of Gspell-1.Gspell.LanguageChooser
101
89
 
102
90
  get_language(): Language | null
103
- get_language_code(): string | null
91
+ get_language_code(): string
104
92
  /**
105
93
  * Sets the selected language.
106
94
  * @param language a #GspellLanguage or %NULL to pick the default language.
@@ -168,7 +156,7 @@ export interface Navigator extends GObject.InitiallyUnowned {
168
156
  * @param word the word to change.
169
157
  * @param change_to the replacement.
170
158
  */
171
- change(word: string | null, change_to: string | null): void
159
+ change(word: string, change_to: string): void
172
160
  /**
173
161
  * Changes all occurrences of `word` by `change_to` in the text.
174
162
  *
@@ -178,13 +166,13 @@ export interface Navigator extends GObject.InitiallyUnowned {
178
166
  * @param word the word to change.
179
167
  * @param change_to the replacement.
180
168
  */
181
- change_all(word: string | null, change_to: string | null): void
169
+ change_all(word: string, change_to: string): void
182
170
  /**
183
171
  * Goes to the next misspelled word. When called the first time, goes to the
184
172
  * first misspelled word.
185
173
  * @returns %TRUE if a next misspelled word has been found, %FALSE if the spell checking is finished or if an error occurred.
186
174
  */
187
- goto_next(): [ /* returnType */ boolean, /* word */ string | null, /* spell_checker */ Checker ]
175
+ goto_next(): [ /* returnType */ boolean, /* word */ string, /* spell_checker */ Checker ]
188
176
 
189
177
  // Own virtual methods of Gspell-1.Gspell.Navigator
190
178
 
@@ -199,7 +187,7 @@ export interface Navigator extends GObject.InitiallyUnowned {
199
187
  * @param word the word to change.
200
188
  * @param change_to the replacement.
201
189
  */
202
- vfunc_change(word: string | null, change_to: string | null): void
190
+ vfunc_change(word: string, change_to: string): void
203
191
  /**
204
192
  * Changes all occurrences of `word` by `change_to` in the text.
205
193
  *
@@ -210,14 +198,14 @@ export interface Navigator extends GObject.InitiallyUnowned {
210
198
  * @param word the word to change.
211
199
  * @param change_to the replacement.
212
200
  */
213
- vfunc_change_all(word: string | null, change_to: string | null): void
201
+ vfunc_change_all(word: string, change_to: string): void
214
202
  /**
215
203
  * Goes to the next misspelled word. When called the first time, goes to the
216
204
  * first misspelled word.
217
205
  * @virtual
218
206
  * @returns %TRUE if a next misspelled word has been found, %FALSE if the spell checking is finished or if an error occurred.
219
207
  */
220
- vfunc_goto_next(): [ /* returnType */ boolean, /* word */ string | null, /* spell_checker */ Checker ]
208
+ vfunc_goto_next(): [ /* returnType */ boolean, /* word */ string, /* spell_checker */ Checker ]
221
209
 
222
210
  // Class property signals of Gspell-1.Gspell.Navigator
223
211
 
@@ -301,7 +289,7 @@ export interface Checker {
301
289
  * @param word a word.
302
290
  * @param word_length the byte length of `word,` or -1 if `word` is nul-terminated.
303
291
  */
304
- add_word_to_personal(word: string | null, word_length: number): void
292
+ add_word_to_personal(word: string, word_length: number): void
305
293
  /**
306
294
  * Adds a word to the session dictionary. Each #GspellChecker instance has a
307
295
  * different session dictionary. The session dictionary is lost when the
@@ -312,7 +300,7 @@ export interface Checker {
312
300
  * @param word a word.
313
301
  * @param word_length the byte length of `word,` or -1 if `word` is nul-terminated.
314
302
  */
315
- add_word_to_session(word: string | null, word_length: number): void
303
+ add_word_to_session(word: string, word_length: number): void
316
304
  /**
317
305
  * If the #GspellChecker:language is %NULL, i.e. when no dictonaries are
318
306
  * available, this function returns %TRUE to limit the damage.
@@ -320,7 +308,7 @@ export interface Checker {
320
308
  * @param word_length the byte length of `word,` or -1 if `word` is nul-terminated.
321
309
  * @returns %TRUE if @word is correctly spelled, %FALSE otherwise.
322
310
  */
323
- check_word(word: string | null, word_length: number): boolean
311
+ check_word(word: string, word_length: number): boolean
324
312
  /**
325
313
  * Clears the session dictionary.
326
314
  */
@@ -333,7 +321,7 @@ export interface Checker {
333
321
  * @param word_length the byte length of `word,` or -1 if `word` is nul-terminated.
334
322
  * @returns the list of suggestions.
335
323
  */
336
- get_suggestions(word: string | null, word_length: number): string[]
324
+ get_suggestions(word: string, word_length: number): string[]
337
325
  /**
338
326
  * Informs the spell checker that `word` is replaced/corrected by `replacement`.
339
327
  * @param word a word.
@@ -341,7 +329,7 @@ export interface Checker {
341
329
  * @param replacement the replacement word.
342
330
  * @param replacement_length the byte length of `replacement,` or -1 if `replacement` is nul-terminated.
343
331
  */
344
- set_correction(word: string | null, word_length: number, replacement: string | null, replacement_length: number): void
332
+ set_correction(word: string, word_length: number, replacement: string, replacement_length: number): void
345
333
  /**
346
334
  * Sets the language to use for the spell checking. If `language` is %NULL, the
347
335
  * default language is picked with gspell_language_get_default().
@@ -352,8 +340,8 @@ export interface Checker {
352
340
  // Own virtual methods of Gspell-1.Gspell.Checker
353
341
 
354
342
  vfunc_session_cleared(): void
355
- vfunc_word_added_to_personal(word: string | null): void
356
- vfunc_word_added_to_session(word: string | null): void
343
+ vfunc_word_added_to_personal(word: string): void
344
+ vfunc_word_added_to_session(word: string): void
357
345
 
358
346
  // Own signals of Gspell-1.Gspell.Checker
359
347
 
@@ -415,10 +403,6 @@ export module CheckerDialog {
415
403
 
416
404
  // Own constructor properties of Gspell-1.Gspell.CheckerDialog
417
405
 
418
- /**
419
- * The #GspellNavigator to use.
420
- */
421
- spell_navigator?: Navigator | null
422
406
  /**
423
407
  * The #GspellNavigator to use.
424
408
  */
@@ -431,10 +415,6 @@ export interface CheckerDialog extends Atk.ImplementorIface, Gtk.Buildable {
431
415
 
432
416
  // Own properties of Gspell-1.Gspell.CheckerDialog
433
417
 
434
- /**
435
- * The #GspellNavigator to use.
436
- */
437
- readonly spell_navigator: Navigator
438
418
  /**
439
419
  * The #GspellNavigator to use.
440
420
  */
@@ -487,7 +467,7 @@ export interface CheckerDialog extends Atk.ImplementorIface, Gtk.Buildable {
487
467
  * @param child the child widget
488
468
  * @param child_property the name of a child property installed on the class of `container`
489
469
  */
490
- child_notify(child: Gtk.Widget, child_property: string | null): void
470
+ child_notify(child: Gtk.Widget, child_property: string): void
491
471
 
492
472
  // Overloads of child_notify
493
473
 
@@ -501,7 +481,7 @@ export interface CheckerDialog extends Atk.ImplementorIface, Gtk.Buildable {
501
481
  * Also see gtk_container_child_notify().
502
482
  * @param child_property the name of a child property installed on the class of `widget’`s parent
503
483
  */
504
- child_notify(child_property: string | null): void
484
+ child_notify(child_property: string): void
505
485
  /**
506
486
  * Emits a #GtkWidget::child-notify signal for the
507
487
  * [child property][child-properties] `child_property`
@@ -512,7 +492,7 @@ export interface CheckerDialog extends Atk.ImplementorIface, Gtk.Buildable {
512
492
  * Also see gtk_container_child_notify().
513
493
  * @param child_property the name of a child property installed on the class of `widget’`s parent
514
494
  */
515
- child_notify(child_property: string | null): void
495
+ child_notify(child_property: string): void
516
496
 
517
497
  // Class property signals of Gspell-1.Gspell.CheckerDialog
518
498
 
@@ -818,14 +798,6 @@ export module Entry {
818
798
  * The #GtkEntry.
819
799
  */
820
800
  entry?: Gtk.Entry | null
821
- /**
822
- * Whether the inline spell checking is enabled.
823
- *
824
- * Even if this property is %TRUE, #GspellEntry disables internally the
825
- * inline spell checking in case the #GtkEntry:visibility property is
826
- * %FALSE.
827
- */
828
- inline_spell_checking?: boolean | null
829
801
  /**
830
802
  * Whether the inline spell checking is enabled.
831
803
  *
@@ -846,14 +818,6 @@ export interface Entry {
846
818
  * The #GtkEntry.
847
819
  */
848
820
  readonly entry: Gtk.Entry
849
- /**
850
- * Whether the inline spell checking is enabled.
851
- *
852
- * Even if this property is %TRUE, #GspellEntry disables internally the
853
- * inline spell checking in case the #GtkEntry:visibility property is
854
- * %FALSE.
855
- */
856
- inline_spell_checking: boolean
857
821
  /**
858
822
  * Whether the inline spell checking is enabled.
859
823
  *
@@ -957,10 +921,6 @@ export module EntryBuffer {
957
921
  * The #GtkEntryBuffer.
958
922
  */
959
923
  buffer?: Gtk.EntryBuffer | null
960
- /**
961
- * The #GspellChecker.
962
- */
963
- spell_checker?: Checker | null
964
924
  /**
965
925
  * The #GspellChecker.
966
926
  */
@@ -977,10 +937,6 @@ export interface EntryBuffer {
977
937
  * The #GtkEntryBuffer.
978
938
  */
979
939
  readonly buffer: Gtk.EntryBuffer
980
- /**
981
- * The #GspellChecker.
982
- */
983
- spell_checker: Checker
984
940
  /**
985
941
  * The #GspellChecker.
986
942
  */
@@ -1059,7 +1015,7 @@ export interface LanguageChooserButton extends Atk.ImplementorIface, LanguageCho
1059
1015
  * Also see gtk_container_child_notify().
1060
1016
  * @param child_property the name of a child property installed on the class of `widget’`s parent
1061
1017
  */
1062
- child_notify(child_property: string | null): void
1018
+ child_notify(child_property: string): void
1063
1019
  /**
1064
1020
  * Emits a #GtkWidget::child-notify signal for the
1065
1021
  * [child property][child-properties]
@@ -1071,7 +1027,7 @@ export interface LanguageChooserButton extends Atk.ImplementorIface, LanguageCho
1071
1027
  * @param child the child widget
1072
1028
  * @param child_property the name of a child property installed on the class of `container`
1073
1029
  */
1074
- child_notify(child: Gtk.Widget, child_property: string | null): void
1030
+ child_notify(child: Gtk.Widget, child_property: string): void
1075
1031
 
1076
1032
  // Overloads of child_notify
1077
1033
 
@@ -1085,7 +1041,7 @@ export interface LanguageChooserButton extends Atk.ImplementorIface, LanguageCho
1085
1041
  * Also see gtk_container_child_notify().
1086
1042
  * @param child_property the name of a child property installed on the class of `widget’`s parent
1087
1043
  */
1088
- child_notify(child_property: string | null): void
1044
+ child_notify(child_property: string): void
1089
1045
 
1090
1046
  // Class property signals of Gspell-1.Gspell.LanguageChooserButton
1091
1047
 
@@ -1345,7 +1301,7 @@ export interface LanguageChooserDialog extends Atk.ImplementorIface, LanguageCho
1345
1301
  * @param child the child widget
1346
1302
  * @param child_property the name of a child property installed on the class of `container`
1347
1303
  */
1348
- child_notify(child: Gtk.Widget, child_property: string | null): void
1304
+ child_notify(child: Gtk.Widget, child_property: string): void
1349
1305
 
1350
1306
  // Overloads of child_notify
1351
1307
 
@@ -1359,7 +1315,7 @@ export interface LanguageChooserDialog extends Atk.ImplementorIface, LanguageCho
1359
1315
  * Also see gtk_container_child_notify().
1360
1316
  * @param child_property the name of a child property installed on the class of `widget’`s parent
1361
1317
  */
1362
- child_notify(child_property: string | null): void
1318
+ child_notify(child_property: string): void
1363
1319
  /**
1364
1320
  * Emits a #GtkWidget::child-notify signal for the
1365
1321
  * [child property][child-properties] `child_property`
@@ -1370,7 +1326,7 @@ export interface LanguageChooserDialog extends Atk.ImplementorIface, LanguageCho
1370
1326
  * Also see gtk_container_child_notify().
1371
1327
  * @param child_property the name of a child property installed on the class of `widget’`s parent
1372
1328
  */
1373
- child_notify(child_property: string | null): void
1329
+ child_notify(child_property: string): void
1374
1330
 
1375
1331
  // Class property signals of Gspell-1.Gspell.LanguageChooserDialog
1376
1332
 
@@ -1739,10 +1695,6 @@ export module TextBuffer {
1739
1695
  * The #GtkTextBuffer.
1740
1696
  */
1741
1697
  buffer?: Gtk.TextBuffer | null
1742
- /**
1743
- * The #GspellChecker.
1744
- */
1745
- spell_checker?: Checker | null
1746
1698
  /**
1747
1699
  * The #GspellChecker.
1748
1700
  */
@@ -1759,10 +1711,6 @@ export interface TextBuffer {
1759
1711
  * The #GtkTextBuffer.
1760
1712
  */
1761
1713
  readonly buffer: Gtk.TextBuffer
1762
- /**
1763
- * The #GspellChecker.
1764
- */
1765
- spell_checker: Checker
1766
1714
  /**
1767
1715
  * The #GspellChecker.
1768
1716
  */
@@ -1826,24 +1774,15 @@ export module TextView {
1826
1774
  * When the context menu is shown, whether to add a sub-menu to select
1827
1775
  * the language for the spell checking.
1828
1776
  */
1829
- enable_language_menu?: boolean | null
1777
+ enableLanguageMenu?: boolean | null
1830
1778
  /**
1831
1779
  * Whether the inline spell checking is enabled.
1832
1780
  */
1833
- inline_spell_checking?: boolean | null
1781
+ inlineSpellChecking?: boolean | null
1834
1782
  /**
1835
1783
  * The #GtkTextView.
1836
1784
  */
1837
1785
  view?: Gtk.TextView | null
1838
- /**
1839
- * When the context menu is shown, whether to add a sub-menu to select
1840
- * the language for the spell checking.
1841
- */
1842
- enableLanguageMenu?: boolean | null
1843
- /**
1844
- * Whether the inline spell checking is enabled.
1845
- */
1846
- inlineSpellChecking?: boolean | null
1847
1786
  }
1848
1787
 
1849
1788
  }
@@ -1852,20 +1791,11 @@ export interface TextView {
1852
1791
 
1853
1792
  // Own properties of Gspell-1.Gspell.TextView
1854
1793
 
1855
- /**
1856
- * When the context menu is shown, whether to add a sub-menu to select
1857
- * the language for the spell checking.
1858
- */
1859
- enable_language_menu: boolean
1860
1794
  /**
1861
1795
  * When the context menu is shown, whether to add a sub-menu to select
1862
1796
  * the language for the spell checking.
1863
1797
  */
1864
1798
  enableLanguageMenu: boolean
1865
- /**
1866
- * Whether the inline spell checking is enabled.
1867
- */
1868
- inline_spell_checking: boolean
1869
1799
  /**
1870
1800
  * Whether the inline spell checking is enabled.
1871
1801
  */
@@ -1981,8 +1911,8 @@ export interface CheckerClass {
1981
1911
  // Own fields of Gspell-1.Gspell.CheckerClass
1982
1912
 
1983
1913
  parent_class: GObject.ObjectClass
1984
- word_added_to_personal: (checker: Checker, word: string | null) => void
1985
- word_added_to_session: (checker: Checker, word: string | null) => void
1914
+ word_added_to_personal: (checker: Checker, word: string) => void
1915
+ word_added_to_session: (checker: Checker, word: string) => void
1986
1916
  session_cleared: (checker: Checker) => void
1987
1917
  padding: any[]
1988
1918
  }
@@ -2057,14 +1987,14 @@ export interface Language {
2057
1987
  * Used by language bindings.
2058
1988
  */
2059
1989
  free(): void
2060
- get_code(): string | null
1990
+ get_code(): string
2061
1991
  /**
2062
1992
  * Returns the `language` name translated to the current locale. For example
2063
1993
  * "French (Belgium)" is returned if the current locale is in English and the
2064
1994
  * `language` code is fr_BE.
2065
1995
  * @returns the @language name.
2066
1996
  */
2067
- get_name(): string | null
1997
+ get_name(): string
2068
1998
  }
2069
1999
 
2070
2000
  export class Language {
@@ -2081,7 +2011,7 @@ export class Language {
2081
2011
  * @returns the default #GspellLanguage, or %NULL if no dictionaries are available.
2082
2012
  */
2083
2013
  static get_default(): Language | null
2084
- static lookup(language_code: string | null): Language | null
2014
+ static lookup(language_code: string): Language | null
2085
2015
  }
2086
2016
 
2087
2017
  export interface LanguageChooserButtonClass {
@@ -2135,9 +2065,9 @@ export interface NavigatorInterface {
2135
2065
  // Own fields of Gspell-1.Gspell.NavigatorInterface
2136
2066
 
2137
2067
  parent_interface: GObject.TypeInterface
2138
- goto_next: (navigator: Navigator) => [ /* returnType */ boolean, /* word */ string | null, /* spell_checker */ Checker ]
2139
- change: (navigator: Navigator, word: string | null, change_to: string | null) => void
2140
- change_all: (navigator: Navigator, word: string | null, change_to: string | null) => void
2068
+ goto_next: (navigator: Navigator) => [ /* returnType */ boolean, /* word */ string, /* spell_checker */ Checker ]
2069
+ change: (navigator: Navigator, word: string, change_to: string) => void
2070
+ change_all: (navigator: Navigator, word: string, change_to: string) => void
2141
2071
  }
2142
2072
 
2143
2073
  export abstract class NavigatorInterface {
package/gspell-1.d.ts CHANGED
@@ -49,7 +49,7 @@ function language_get_available(): Language[]
49
49
  * @returns the default #GspellLanguage, or %NULL if no dictionaries are available.
50
50
  */
51
51
  function language_get_default(): Language | null
52
- function language_lookup(language_code: string | null): Language | null
52
+ function language_lookup(language_code: string): Language | null
53
53
  module LanguageChooser {
54
54
 
55
55
  // Constructor properties interface
@@ -62,12 +62,6 @@ module LanguageChooser {
62
62
  * The selected #GspellLanguage.
63
63
  */
64
64
  language?: Language | null
65
- /**
66
- * The empty string if the default language was set and the selection
67
- * hasn't changed. Or the language code if an explicit language was set
68
- * or if the selection has changed.
69
- */
70
- language_code?: string | null
71
65
  /**
72
66
  * The empty string if the default language was set and the selection
73
67
  * hasn't changed. Or the language code if an explicit language was set
@@ -86,12 +80,6 @@ interface LanguageChooser {
86
80
  * The selected #GspellLanguage.
87
81
  */
88
82
  language: Language
89
- /**
90
- * The empty string if the default language was set and the selection
91
- * hasn't changed. Or the language code if an explicit language was set
92
- * or if the selection has changed.
93
- */
94
- language_code: string | null
95
83
  /**
96
84
  * The empty string if the default language was set and the selection
97
85
  * hasn't changed. Or the language code if an explicit language was set
@@ -102,7 +90,7 @@ interface LanguageChooser {
102
90
  // Owm methods of Gspell-1.Gspell.LanguageChooser
103
91
 
104
92
  get_language(): Language | null
105
- get_language_code(): string | null
93
+ get_language_code(): string
106
94
  /**
107
95
  * Sets the selected language.
108
96
  * @param language a #GspellLanguage or %NULL to pick the default language.
@@ -170,7 +158,7 @@ interface Navigator extends GObject.InitiallyUnowned {
170
158
  * @param word the word to change.
171
159
  * @param change_to the replacement.
172
160
  */
173
- change(word: string | null, change_to: string | null): void
161
+ change(word: string, change_to: string): void
174
162
  /**
175
163
  * Changes all occurrences of `word` by `change_to` in the text.
176
164
  *
@@ -180,13 +168,13 @@ interface Navigator extends GObject.InitiallyUnowned {
180
168
  * @param word the word to change.
181
169
  * @param change_to the replacement.
182
170
  */
183
- change_all(word: string | null, change_to: string | null): void
171
+ change_all(word: string, change_to: string): void
184
172
  /**
185
173
  * Goes to the next misspelled word. When called the first time, goes to the
186
174
  * first misspelled word.
187
175
  * @returns %TRUE if a next misspelled word has been found, %FALSE if the spell checking is finished or if an error occurred.
188
176
  */
189
- goto_next(): [ /* returnType */ boolean, /* word */ string | null, /* spell_checker */ Checker ]
177
+ goto_next(): [ /* returnType */ boolean, /* word */ string, /* spell_checker */ Checker ]
190
178
 
191
179
  // Own virtual methods of Gspell-1.Gspell.Navigator
192
180
 
@@ -201,7 +189,7 @@ interface Navigator extends GObject.InitiallyUnowned {
201
189
  * @param word the word to change.
202
190
  * @param change_to the replacement.
203
191
  */
204
- vfunc_change(word: string | null, change_to: string | null): void
192
+ vfunc_change(word: string, change_to: string): void
205
193
  /**
206
194
  * Changes all occurrences of `word` by `change_to` in the text.
207
195
  *
@@ -212,14 +200,14 @@ interface Navigator extends GObject.InitiallyUnowned {
212
200
  * @param word the word to change.
213
201
  * @param change_to the replacement.
214
202
  */
215
- vfunc_change_all(word: string | null, change_to: string | null): void
203
+ vfunc_change_all(word: string, change_to: string): void
216
204
  /**
217
205
  * Goes to the next misspelled word. When called the first time, goes to the
218
206
  * first misspelled word.
219
207
  * @virtual
220
208
  * @returns %TRUE if a next misspelled word has been found, %FALSE if the spell checking is finished or if an error occurred.
221
209
  */
222
- vfunc_goto_next(): [ /* returnType */ boolean, /* word */ string | null, /* spell_checker */ Checker ]
210
+ vfunc_goto_next(): [ /* returnType */ boolean, /* word */ string, /* spell_checker */ Checker ]
223
211
 
224
212
  // Class property signals of Gspell-1.Gspell.Navigator
225
213
 
@@ -303,7 +291,7 @@ interface Checker {
303
291
  * @param word a word.
304
292
  * @param word_length the byte length of `word,` or -1 if `word` is nul-terminated.
305
293
  */
306
- add_word_to_personal(word: string | null, word_length: number): void
294
+ add_word_to_personal(word: string, word_length: number): void
307
295
  /**
308
296
  * Adds a word to the session dictionary. Each #GspellChecker instance has a
309
297
  * different session dictionary. The session dictionary is lost when the
@@ -314,7 +302,7 @@ interface Checker {
314
302
  * @param word a word.
315
303
  * @param word_length the byte length of `word,` or -1 if `word` is nul-terminated.
316
304
  */
317
- add_word_to_session(word: string | null, word_length: number): void
305
+ add_word_to_session(word: string, word_length: number): void
318
306
  /**
319
307
  * If the #GspellChecker:language is %NULL, i.e. when no dictonaries are
320
308
  * available, this function returns %TRUE to limit the damage.
@@ -322,7 +310,7 @@ interface Checker {
322
310
  * @param word_length the byte length of `word,` or -1 if `word` is nul-terminated.
323
311
  * @returns %TRUE if @word is correctly spelled, %FALSE otherwise.
324
312
  */
325
- check_word(word: string | null, word_length: number): boolean
313
+ check_word(word: string, word_length: number): boolean
326
314
  /**
327
315
  * Clears the session dictionary.
328
316
  */
@@ -335,7 +323,7 @@ interface Checker {
335
323
  * @param word_length the byte length of `word,` or -1 if `word` is nul-terminated.
336
324
  * @returns the list of suggestions.
337
325
  */
338
- get_suggestions(word: string | null, word_length: number): string[]
326
+ get_suggestions(word: string, word_length: number): string[]
339
327
  /**
340
328
  * Informs the spell checker that `word` is replaced/corrected by `replacement`.
341
329
  * @param word a word.
@@ -343,7 +331,7 @@ interface Checker {
343
331
  * @param replacement the replacement word.
344
332
  * @param replacement_length the byte length of `replacement,` or -1 if `replacement` is nul-terminated.
345
333
  */
346
- set_correction(word: string | null, word_length: number, replacement: string | null, replacement_length: number): void
334
+ set_correction(word: string, word_length: number, replacement: string, replacement_length: number): void
347
335
  /**
348
336
  * Sets the language to use for the spell checking. If `language` is %NULL, the
349
337
  * default language is picked with gspell_language_get_default().
@@ -354,8 +342,8 @@ interface Checker {
354
342
  // Own virtual methods of Gspell-1.Gspell.Checker
355
343
 
356
344
  vfunc_session_cleared(): void
357
- vfunc_word_added_to_personal(word: string | null): void
358
- vfunc_word_added_to_session(word: string | null): void
345
+ vfunc_word_added_to_personal(word: string): void
346
+ vfunc_word_added_to_session(word: string): void
359
347
 
360
348
  // Own signals of Gspell-1.Gspell.Checker
361
349
 
@@ -417,10 +405,6 @@ module CheckerDialog {
417
405
 
418
406
  // Own constructor properties of Gspell-1.Gspell.CheckerDialog
419
407
 
420
- /**
421
- * The #GspellNavigator to use.
422
- */
423
- spell_navigator?: Navigator | null
424
408
  /**
425
409
  * The #GspellNavigator to use.
426
410
  */
@@ -433,10 +417,6 @@ interface CheckerDialog extends Atk.ImplementorIface, Gtk.Buildable {
433
417
 
434
418
  // Own properties of Gspell-1.Gspell.CheckerDialog
435
419
 
436
- /**
437
- * The #GspellNavigator to use.
438
- */
439
- readonly spell_navigator: Navigator
440
420
  /**
441
421
  * The #GspellNavigator to use.
442
422
  */
@@ -489,7 +469,7 @@ interface CheckerDialog extends Atk.ImplementorIface, Gtk.Buildable {
489
469
  * @param child the child widget
490
470
  * @param child_property the name of a child property installed on the class of `container`
491
471
  */
492
- child_notify(child: Gtk.Widget, child_property: string | null): void
472
+ child_notify(child: Gtk.Widget, child_property: string): void
493
473
 
494
474
  // Overloads of child_notify
495
475
 
@@ -503,7 +483,7 @@ interface CheckerDialog extends Atk.ImplementorIface, Gtk.Buildable {
503
483
  * Also see gtk_container_child_notify().
504
484
  * @param child_property the name of a child property installed on the class of `widget’`s parent
505
485
  */
506
- child_notify(child_property: string | null): void
486
+ child_notify(child_property: string): void
507
487
  /**
508
488
  * Emits a #GtkWidget::child-notify signal for the
509
489
  * [child property][child-properties] `child_property`
@@ -514,7 +494,7 @@ interface CheckerDialog extends Atk.ImplementorIface, Gtk.Buildable {
514
494
  * Also see gtk_container_child_notify().
515
495
  * @param child_property the name of a child property installed on the class of `widget’`s parent
516
496
  */
517
- child_notify(child_property: string | null): void
497
+ child_notify(child_property: string): void
518
498
 
519
499
  // Class property signals of Gspell-1.Gspell.CheckerDialog
520
500
 
@@ -820,14 +800,6 @@ module Entry {
820
800
  * The #GtkEntry.
821
801
  */
822
802
  entry?: Gtk.Entry | null
823
- /**
824
- * Whether the inline spell checking is enabled.
825
- *
826
- * Even if this property is %TRUE, #GspellEntry disables internally the
827
- * inline spell checking in case the #GtkEntry:visibility property is
828
- * %FALSE.
829
- */
830
- inline_spell_checking?: boolean | null
831
803
  /**
832
804
  * Whether the inline spell checking is enabled.
833
805
  *
@@ -848,14 +820,6 @@ interface Entry {
848
820
  * The #GtkEntry.
849
821
  */
850
822
  readonly entry: Gtk.Entry
851
- /**
852
- * Whether the inline spell checking is enabled.
853
- *
854
- * Even if this property is %TRUE, #GspellEntry disables internally the
855
- * inline spell checking in case the #GtkEntry:visibility property is
856
- * %FALSE.
857
- */
858
- inline_spell_checking: boolean
859
823
  /**
860
824
  * Whether the inline spell checking is enabled.
861
825
  *
@@ -959,10 +923,6 @@ module EntryBuffer {
959
923
  * The #GtkEntryBuffer.
960
924
  */
961
925
  buffer?: Gtk.EntryBuffer | null
962
- /**
963
- * The #GspellChecker.
964
- */
965
- spell_checker?: Checker | null
966
926
  /**
967
927
  * The #GspellChecker.
968
928
  */
@@ -979,10 +939,6 @@ interface EntryBuffer {
979
939
  * The #GtkEntryBuffer.
980
940
  */
981
941
  readonly buffer: Gtk.EntryBuffer
982
- /**
983
- * The #GspellChecker.
984
- */
985
- spell_checker: Checker
986
942
  /**
987
943
  * The #GspellChecker.
988
944
  */
@@ -1061,7 +1017,7 @@ interface LanguageChooserButton extends Atk.ImplementorIface, LanguageChooser, G
1061
1017
  * Also see gtk_container_child_notify().
1062
1018
  * @param child_property the name of a child property installed on the class of `widget’`s parent
1063
1019
  */
1064
- child_notify(child_property: string | null): void
1020
+ child_notify(child_property: string): void
1065
1021
  /**
1066
1022
  * Emits a #GtkWidget::child-notify signal for the
1067
1023
  * [child property][child-properties]
@@ -1073,7 +1029,7 @@ interface LanguageChooserButton extends Atk.ImplementorIface, LanguageChooser, G
1073
1029
  * @param child the child widget
1074
1030
  * @param child_property the name of a child property installed on the class of `container`
1075
1031
  */
1076
- child_notify(child: Gtk.Widget, child_property: string | null): void
1032
+ child_notify(child: Gtk.Widget, child_property: string): void
1077
1033
 
1078
1034
  // Overloads of child_notify
1079
1035
 
@@ -1087,7 +1043,7 @@ interface LanguageChooserButton extends Atk.ImplementorIface, LanguageChooser, G
1087
1043
  * Also see gtk_container_child_notify().
1088
1044
  * @param child_property the name of a child property installed on the class of `widget’`s parent
1089
1045
  */
1090
- child_notify(child_property: string | null): void
1046
+ child_notify(child_property: string): void
1091
1047
 
1092
1048
  // Class property signals of Gspell-1.Gspell.LanguageChooserButton
1093
1049
 
@@ -1347,7 +1303,7 @@ interface LanguageChooserDialog extends Atk.ImplementorIface, LanguageChooser, G
1347
1303
  * @param child the child widget
1348
1304
  * @param child_property the name of a child property installed on the class of `container`
1349
1305
  */
1350
- child_notify(child: Gtk.Widget, child_property: string | null): void
1306
+ child_notify(child: Gtk.Widget, child_property: string): void
1351
1307
 
1352
1308
  // Overloads of child_notify
1353
1309
 
@@ -1361,7 +1317,7 @@ interface LanguageChooserDialog extends Atk.ImplementorIface, LanguageChooser, G
1361
1317
  * Also see gtk_container_child_notify().
1362
1318
  * @param child_property the name of a child property installed on the class of `widget’`s parent
1363
1319
  */
1364
- child_notify(child_property: string | null): void
1320
+ child_notify(child_property: string): void
1365
1321
  /**
1366
1322
  * Emits a #GtkWidget::child-notify signal for the
1367
1323
  * [child property][child-properties] `child_property`
@@ -1372,7 +1328,7 @@ interface LanguageChooserDialog extends Atk.ImplementorIface, LanguageChooser, G
1372
1328
  * Also see gtk_container_child_notify().
1373
1329
  * @param child_property the name of a child property installed on the class of `widget’`s parent
1374
1330
  */
1375
- child_notify(child_property: string | null): void
1331
+ child_notify(child_property: string): void
1376
1332
 
1377
1333
  // Class property signals of Gspell-1.Gspell.LanguageChooserDialog
1378
1334
 
@@ -1741,10 +1697,6 @@ module TextBuffer {
1741
1697
  * The #GtkTextBuffer.
1742
1698
  */
1743
1699
  buffer?: Gtk.TextBuffer | null
1744
- /**
1745
- * The #GspellChecker.
1746
- */
1747
- spell_checker?: Checker | null
1748
1700
  /**
1749
1701
  * The #GspellChecker.
1750
1702
  */
@@ -1761,10 +1713,6 @@ interface TextBuffer {
1761
1713
  * The #GtkTextBuffer.
1762
1714
  */
1763
1715
  readonly buffer: Gtk.TextBuffer
1764
- /**
1765
- * The #GspellChecker.
1766
- */
1767
- spell_checker: Checker
1768
1716
  /**
1769
1717
  * The #GspellChecker.
1770
1718
  */
@@ -1828,24 +1776,15 @@ module TextView {
1828
1776
  * When the context menu is shown, whether to add a sub-menu to select
1829
1777
  * the language for the spell checking.
1830
1778
  */
1831
- enable_language_menu?: boolean | null
1779
+ enableLanguageMenu?: boolean | null
1832
1780
  /**
1833
1781
  * Whether the inline spell checking is enabled.
1834
1782
  */
1835
- inline_spell_checking?: boolean | null
1783
+ inlineSpellChecking?: boolean | null
1836
1784
  /**
1837
1785
  * The #GtkTextView.
1838
1786
  */
1839
1787
  view?: Gtk.TextView | null
1840
- /**
1841
- * When the context menu is shown, whether to add a sub-menu to select
1842
- * the language for the spell checking.
1843
- */
1844
- enableLanguageMenu?: boolean | null
1845
- /**
1846
- * Whether the inline spell checking is enabled.
1847
- */
1848
- inlineSpellChecking?: boolean | null
1849
1788
  }
1850
1789
 
1851
1790
  }
@@ -1854,20 +1793,11 @@ interface TextView {
1854
1793
 
1855
1794
  // Own properties of Gspell-1.Gspell.TextView
1856
1795
 
1857
- /**
1858
- * When the context menu is shown, whether to add a sub-menu to select
1859
- * the language for the spell checking.
1860
- */
1861
- enable_language_menu: boolean
1862
1796
  /**
1863
1797
  * When the context menu is shown, whether to add a sub-menu to select
1864
1798
  * the language for the spell checking.
1865
1799
  */
1866
1800
  enableLanguageMenu: boolean
1867
- /**
1868
- * Whether the inline spell checking is enabled.
1869
- */
1870
- inline_spell_checking: boolean
1871
1801
  /**
1872
1802
  * Whether the inline spell checking is enabled.
1873
1803
  */
@@ -1983,8 +1913,8 @@ interface CheckerClass {
1983
1913
  // Own fields of Gspell-1.Gspell.CheckerClass
1984
1914
 
1985
1915
  parent_class: GObject.ObjectClass
1986
- word_added_to_personal: (checker: Checker, word: string | null) => void
1987
- word_added_to_session: (checker: Checker, word: string | null) => void
1916
+ word_added_to_personal: (checker: Checker, word: string) => void
1917
+ word_added_to_session: (checker: Checker, word: string) => void
1988
1918
  session_cleared: (checker: Checker) => void
1989
1919
  padding: any[]
1990
1920
  }
@@ -2059,14 +1989,14 @@ interface Language {
2059
1989
  * Used by language bindings.
2060
1990
  */
2061
1991
  free(): void
2062
- get_code(): string | null
1992
+ get_code(): string
2063
1993
  /**
2064
1994
  * Returns the `language` name translated to the current locale. For example
2065
1995
  * "French (Belgium)" is returned if the current locale is in English and the
2066
1996
  * `language` code is fr_BE.
2067
1997
  * @returns the @language name.
2068
1998
  */
2069
- get_name(): string | null
1999
+ get_name(): string
2070
2000
  }
2071
2001
 
2072
2002
  class Language {
@@ -2083,7 +2013,7 @@ class Language {
2083
2013
  * @returns the default #GspellLanguage, or %NULL if no dictionaries are available.
2084
2014
  */
2085
2015
  static get_default(): Language | null
2086
- static lookup(language_code: string | null): Language | null
2016
+ static lookup(language_code: string): Language | null
2087
2017
  }
2088
2018
 
2089
2019
  interface LanguageChooserButtonClass {
@@ -2137,9 +2067,9 @@ interface NavigatorInterface {
2137
2067
  // Own fields of Gspell-1.Gspell.NavigatorInterface
2138
2068
 
2139
2069
  parent_interface: GObject.TypeInterface
2140
- goto_next: (navigator: Navigator) => [ /* returnType */ boolean, /* word */ string | null, /* spell_checker */ Checker ]
2141
- change: (navigator: Navigator, word: string | null, change_to: string | null) => void
2142
- change_all: (navigator: Navigator, word: string | null, change_to: string | null) => void
2070
+ goto_next: (navigator: Navigator) => [ /* returnType */ boolean, /* word */ string, /* spell_checker */ Checker ]
2071
+ change: (navigator: Navigator, word: string, change_to: string) => void
2072
+ change_all: (navigator: Navigator, word: string, change_to: string) => void
2143
2073
  }
2144
2074
 
2145
2075
  abstract class NavigatorInterface {
package/package.json CHANGED
@@ -1,13 +1,19 @@
1
1
  {
2
2
  "name": "@girs/gspell-1",
3
- "version": "1.0.0-3.2.6",
3
+ "version": "1.0.0-3.2.8",
4
4
  "description": "GJS TypeScript type definitions for Gspell-1, generated from library version 1.0.0",
5
5
  "type": "module",
6
6
  "module": "gspell-1.js",
7
7
  "main": "gspell-1.js",
8
8
  "exports": {
9
- "./ambient": "./gspell-1-ambient.d.ts",
10
- "./import": "./gspell-1-import.d.ts",
9
+ "./ambient": {
10
+ "types": "./gspell-1-ambient.d.ts",
11
+ "default": "./gspell-1-ambient.js"
12
+ },
13
+ "./import": {
14
+ "types": "./gspell-1-import.d.ts",
15
+ "default": "./gspell-1-import.js"
16
+ },
11
17
  ".": {
12
18
  "import": {
13
19
  "types": "./gspell-1.d.ts",
@@ -25,20 +31,20 @@
25
31
  "test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit gspell-1.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/pango-1.0": "^1.51.0-3.2.6",
41
- "@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/pango-1.0": "^1.51.0-3.2.8",
47
+ "@girs/xlib-2.0": "^2.0.0-3.2.8"
42
48
  },
43
49
  "devDependencies": {
44
50
  "typescript": "*"
@@ -55,7 +61,7 @@
55
61
  "license": "MIT",
56
62
  "repository": {
57
63
  "type": "git",
58
- "url": "git+https://github.com/gjsify/types.git"
64
+ "url": "git+https://github.com/gjsify/ts-for-gir.git"
59
65
  },
60
66
  "bugs": {
61
67
  "url": "https://github.com/gjsify/ts-for-gir/issues"