@girs/gspell-1 1.0.0-3.2.6 → 1.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 +1 -1
- package/gspell-1.d.cts +32 -32
- package/gspell-1.d.ts +32 -32
- package/package.json +15 -15
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|

|
|
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.
|
|
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.7.
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
## Install
|
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
|
|
50
|
+
export function language_lookup(language_code: string): Language | null
|
|
51
51
|
export module LanguageChooser {
|
|
52
52
|
|
|
53
53
|
// Constructor properties interface
|
|
@@ -100,7 +100,7 @@ export interface LanguageChooser {
|
|
|
100
100
|
// Owm methods of Gspell-1.Gspell.LanguageChooser
|
|
101
101
|
|
|
102
102
|
get_language(): Language | null
|
|
103
|
-
get_language_code(): string
|
|
103
|
+
get_language_code(): string
|
|
104
104
|
/**
|
|
105
105
|
* Sets the selected language.
|
|
106
106
|
* @param language a #GspellLanguage or %NULL to pick the default language.
|
|
@@ -168,7 +168,7 @@ export interface Navigator extends GObject.InitiallyUnowned {
|
|
|
168
168
|
* @param word the word to change.
|
|
169
169
|
* @param change_to the replacement.
|
|
170
170
|
*/
|
|
171
|
-
change(word: string
|
|
171
|
+
change(word: string, change_to: string): void
|
|
172
172
|
/**
|
|
173
173
|
* Changes all occurrences of `word` by `change_to` in the text.
|
|
174
174
|
*
|
|
@@ -178,13 +178,13 @@ export interface Navigator extends GObject.InitiallyUnowned {
|
|
|
178
178
|
* @param word the word to change.
|
|
179
179
|
* @param change_to the replacement.
|
|
180
180
|
*/
|
|
181
|
-
change_all(word: string
|
|
181
|
+
change_all(word: string, change_to: string): void
|
|
182
182
|
/**
|
|
183
183
|
* Goes to the next misspelled word. When called the first time, goes to the
|
|
184
184
|
* first misspelled word.
|
|
185
185
|
* @returns %TRUE if a next misspelled word has been found, %FALSE if the spell checking is finished or if an error occurred.
|
|
186
186
|
*/
|
|
187
|
-
goto_next(): [ /* returnType */ boolean, /* word */ string
|
|
187
|
+
goto_next(): [ /* returnType */ boolean, /* word */ string, /* spell_checker */ Checker ]
|
|
188
188
|
|
|
189
189
|
// Own virtual methods of Gspell-1.Gspell.Navigator
|
|
190
190
|
|
|
@@ -199,7 +199,7 @@ export interface Navigator extends GObject.InitiallyUnowned {
|
|
|
199
199
|
* @param word the word to change.
|
|
200
200
|
* @param change_to the replacement.
|
|
201
201
|
*/
|
|
202
|
-
vfunc_change(word: string
|
|
202
|
+
vfunc_change(word: string, change_to: string): void
|
|
203
203
|
/**
|
|
204
204
|
* Changes all occurrences of `word` by `change_to` in the text.
|
|
205
205
|
*
|
|
@@ -210,14 +210,14 @@ export interface Navigator extends GObject.InitiallyUnowned {
|
|
|
210
210
|
* @param word the word to change.
|
|
211
211
|
* @param change_to the replacement.
|
|
212
212
|
*/
|
|
213
|
-
vfunc_change_all(word: string
|
|
213
|
+
vfunc_change_all(word: string, change_to: string): void
|
|
214
214
|
/**
|
|
215
215
|
* Goes to the next misspelled word. When called the first time, goes to the
|
|
216
216
|
* first misspelled word.
|
|
217
217
|
* @virtual
|
|
218
218
|
* @returns %TRUE if a next misspelled word has been found, %FALSE if the spell checking is finished or if an error occurred.
|
|
219
219
|
*/
|
|
220
|
-
vfunc_goto_next(): [ /* returnType */ boolean, /* word */ string
|
|
220
|
+
vfunc_goto_next(): [ /* returnType */ boolean, /* word */ string, /* spell_checker */ Checker ]
|
|
221
221
|
|
|
222
222
|
// Class property signals of Gspell-1.Gspell.Navigator
|
|
223
223
|
|
|
@@ -301,7 +301,7 @@ export interface Checker {
|
|
|
301
301
|
* @param word a word.
|
|
302
302
|
* @param word_length the byte length of `word,` or -1 if `word` is nul-terminated.
|
|
303
303
|
*/
|
|
304
|
-
add_word_to_personal(word: string
|
|
304
|
+
add_word_to_personal(word: string, word_length: number): void
|
|
305
305
|
/**
|
|
306
306
|
* Adds a word to the session dictionary. Each #GspellChecker instance has a
|
|
307
307
|
* different session dictionary. The session dictionary is lost when the
|
|
@@ -312,7 +312,7 @@ export interface Checker {
|
|
|
312
312
|
* @param word a word.
|
|
313
313
|
* @param word_length the byte length of `word,` or -1 if `word` is nul-terminated.
|
|
314
314
|
*/
|
|
315
|
-
add_word_to_session(word: string
|
|
315
|
+
add_word_to_session(word: string, word_length: number): void
|
|
316
316
|
/**
|
|
317
317
|
* If the #GspellChecker:language is %NULL, i.e. when no dictonaries are
|
|
318
318
|
* available, this function returns %TRUE to limit the damage.
|
|
@@ -320,7 +320,7 @@ export interface Checker {
|
|
|
320
320
|
* @param word_length the byte length of `word,` or -1 if `word` is nul-terminated.
|
|
321
321
|
* @returns %TRUE if @word is correctly spelled, %FALSE otherwise.
|
|
322
322
|
*/
|
|
323
|
-
check_word(word: string
|
|
323
|
+
check_word(word: string, word_length: number): boolean
|
|
324
324
|
/**
|
|
325
325
|
* Clears the session dictionary.
|
|
326
326
|
*/
|
|
@@ -333,7 +333,7 @@ export interface Checker {
|
|
|
333
333
|
* @param word_length the byte length of `word,` or -1 if `word` is nul-terminated.
|
|
334
334
|
* @returns the list of suggestions.
|
|
335
335
|
*/
|
|
336
|
-
get_suggestions(word: string
|
|
336
|
+
get_suggestions(word: string, word_length: number): string[]
|
|
337
337
|
/**
|
|
338
338
|
* Informs the spell checker that `word` is replaced/corrected by `replacement`.
|
|
339
339
|
* @param word a word.
|
|
@@ -341,7 +341,7 @@ export interface Checker {
|
|
|
341
341
|
* @param replacement the replacement word.
|
|
342
342
|
* @param replacement_length the byte length of `replacement,` or -1 if `replacement` is nul-terminated.
|
|
343
343
|
*/
|
|
344
|
-
set_correction(word: string
|
|
344
|
+
set_correction(word: string, word_length: number, replacement: string, replacement_length: number): void
|
|
345
345
|
/**
|
|
346
346
|
* Sets the language to use for the spell checking. If `language` is %NULL, the
|
|
347
347
|
* default language is picked with gspell_language_get_default().
|
|
@@ -352,8 +352,8 @@ export interface Checker {
|
|
|
352
352
|
// Own virtual methods of Gspell-1.Gspell.Checker
|
|
353
353
|
|
|
354
354
|
vfunc_session_cleared(): void
|
|
355
|
-
vfunc_word_added_to_personal(word: string
|
|
356
|
-
vfunc_word_added_to_session(word: string
|
|
355
|
+
vfunc_word_added_to_personal(word: string): void
|
|
356
|
+
vfunc_word_added_to_session(word: string): void
|
|
357
357
|
|
|
358
358
|
// Own signals of Gspell-1.Gspell.Checker
|
|
359
359
|
|
|
@@ -487,7 +487,7 @@ export interface CheckerDialog extends Atk.ImplementorIface, Gtk.Buildable {
|
|
|
487
487
|
* @param child the child widget
|
|
488
488
|
* @param child_property the name of a child property installed on the class of `container`
|
|
489
489
|
*/
|
|
490
|
-
child_notify(child: Gtk.Widget, child_property: string
|
|
490
|
+
child_notify(child: Gtk.Widget, child_property: string): void
|
|
491
491
|
|
|
492
492
|
// Overloads of child_notify
|
|
493
493
|
|
|
@@ -501,7 +501,7 @@ export interface CheckerDialog extends Atk.ImplementorIface, Gtk.Buildable {
|
|
|
501
501
|
* Also see gtk_container_child_notify().
|
|
502
502
|
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
503
503
|
*/
|
|
504
|
-
child_notify(child_property: string
|
|
504
|
+
child_notify(child_property: string): void
|
|
505
505
|
/**
|
|
506
506
|
* Emits a #GtkWidget::child-notify signal for the
|
|
507
507
|
* [child property][child-properties] `child_property`
|
|
@@ -512,7 +512,7 @@ export interface CheckerDialog extends Atk.ImplementorIface, Gtk.Buildable {
|
|
|
512
512
|
* Also see gtk_container_child_notify().
|
|
513
513
|
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
514
514
|
*/
|
|
515
|
-
child_notify(child_property: string
|
|
515
|
+
child_notify(child_property: string): void
|
|
516
516
|
|
|
517
517
|
// Class property signals of Gspell-1.Gspell.CheckerDialog
|
|
518
518
|
|
|
@@ -1059,7 +1059,7 @@ export interface LanguageChooserButton extends Atk.ImplementorIface, LanguageCho
|
|
|
1059
1059
|
* Also see gtk_container_child_notify().
|
|
1060
1060
|
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
1061
1061
|
*/
|
|
1062
|
-
child_notify(child_property: string
|
|
1062
|
+
child_notify(child_property: string): void
|
|
1063
1063
|
/**
|
|
1064
1064
|
* Emits a #GtkWidget::child-notify signal for the
|
|
1065
1065
|
* [child property][child-properties]
|
|
@@ -1071,7 +1071,7 @@ export interface LanguageChooserButton extends Atk.ImplementorIface, LanguageCho
|
|
|
1071
1071
|
* @param child the child widget
|
|
1072
1072
|
* @param child_property the name of a child property installed on the class of `container`
|
|
1073
1073
|
*/
|
|
1074
|
-
child_notify(child: Gtk.Widget, child_property: string
|
|
1074
|
+
child_notify(child: Gtk.Widget, child_property: string): void
|
|
1075
1075
|
|
|
1076
1076
|
// Overloads of child_notify
|
|
1077
1077
|
|
|
@@ -1085,7 +1085,7 @@ export interface LanguageChooserButton extends Atk.ImplementorIface, LanguageCho
|
|
|
1085
1085
|
* Also see gtk_container_child_notify().
|
|
1086
1086
|
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
1087
1087
|
*/
|
|
1088
|
-
child_notify(child_property: string
|
|
1088
|
+
child_notify(child_property: string): void
|
|
1089
1089
|
|
|
1090
1090
|
// Class property signals of Gspell-1.Gspell.LanguageChooserButton
|
|
1091
1091
|
|
|
@@ -1345,7 +1345,7 @@ export interface LanguageChooserDialog extends Atk.ImplementorIface, LanguageCho
|
|
|
1345
1345
|
* @param child the child widget
|
|
1346
1346
|
* @param child_property the name of a child property installed on the class of `container`
|
|
1347
1347
|
*/
|
|
1348
|
-
child_notify(child: Gtk.Widget, child_property: string
|
|
1348
|
+
child_notify(child: Gtk.Widget, child_property: string): void
|
|
1349
1349
|
|
|
1350
1350
|
// Overloads of child_notify
|
|
1351
1351
|
|
|
@@ -1359,7 +1359,7 @@ export interface LanguageChooserDialog extends Atk.ImplementorIface, LanguageCho
|
|
|
1359
1359
|
* Also see gtk_container_child_notify().
|
|
1360
1360
|
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
1361
1361
|
*/
|
|
1362
|
-
child_notify(child_property: string
|
|
1362
|
+
child_notify(child_property: string): void
|
|
1363
1363
|
/**
|
|
1364
1364
|
* Emits a #GtkWidget::child-notify signal for the
|
|
1365
1365
|
* [child property][child-properties] `child_property`
|
|
@@ -1370,7 +1370,7 @@ export interface LanguageChooserDialog extends Atk.ImplementorIface, LanguageCho
|
|
|
1370
1370
|
* Also see gtk_container_child_notify().
|
|
1371
1371
|
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
1372
1372
|
*/
|
|
1373
|
-
child_notify(child_property: string
|
|
1373
|
+
child_notify(child_property: string): void
|
|
1374
1374
|
|
|
1375
1375
|
// Class property signals of Gspell-1.Gspell.LanguageChooserDialog
|
|
1376
1376
|
|
|
@@ -1981,8 +1981,8 @@ export interface CheckerClass {
|
|
|
1981
1981
|
// Own fields of Gspell-1.Gspell.CheckerClass
|
|
1982
1982
|
|
|
1983
1983
|
parent_class: GObject.ObjectClass
|
|
1984
|
-
word_added_to_personal: (checker: Checker, word: string
|
|
1985
|
-
word_added_to_session: (checker: Checker, word: string
|
|
1984
|
+
word_added_to_personal: (checker: Checker, word: string) => void
|
|
1985
|
+
word_added_to_session: (checker: Checker, word: string) => void
|
|
1986
1986
|
session_cleared: (checker: Checker) => void
|
|
1987
1987
|
padding: any[]
|
|
1988
1988
|
}
|
|
@@ -2057,14 +2057,14 @@ export interface Language {
|
|
|
2057
2057
|
* Used by language bindings.
|
|
2058
2058
|
*/
|
|
2059
2059
|
free(): void
|
|
2060
|
-
get_code(): string
|
|
2060
|
+
get_code(): string
|
|
2061
2061
|
/**
|
|
2062
2062
|
* Returns the `language` name translated to the current locale. For example
|
|
2063
2063
|
* "French (Belgium)" is returned if the current locale is in English and the
|
|
2064
2064
|
* `language` code is fr_BE.
|
|
2065
2065
|
* @returns the @language name.
|
|
2066
2066
|
*/
|
|
2067
|
-
get_name(): string
|
|
2067
|
+
get_name(): string
|
|
2068
2068
|
}
|
|
2069
2069
|
|
|
2070
2070
|
export class Language {
|
|
@@ -2081,7 +2081,7 @@ export class Language {
|
|
|
2081
2081
|
* @returns the default #GspellLanguage, or %NULL if no dictionaries are available.
|
|
2082
2082
|
*/
|
|
2083
2083
|
static get_default(): Language | null
|
|
2084
|
-
static lookup(language_code: string
|
|
2084
|
+
static lookup(language_code: string): Language | null
|
|
2085
2085
|
}
|
|
2086
2086
|
|
|
2087
2087
|
export interface LanguageChooserButtonClass {
|
|
@@ -2135,9 +2135,9 @@ export interface NavigatorInterface {
|
|
|
2135
2135
|
// Own fields of Gspell-1.Gspell.NavigatorInterface
|
|
2136
2136
|
|
|
2137
2137
|
parent_interface: GObject.TypeInterface
|
|
2138
|
-
goto_next: (navigator: Navigator) => [ /* returnType */ boolean, /* word */ string
|
|
2139
|
-
change: (navigator: Navigator, word: string
|
|
2140
|
-
change_all: (navigator: Navigator, word: string
|
|
2138
|
+
goto_next: (navigator: Navigator) => [ /* returnType */ boolean, /* word */ string, /* spell_checker */ Checker ]
|
|
2139
|
+
change: (navigator: Navigator, word: string, change_to: string) => void
|
|
2140
|
+
change_all: (navigator: Navigator, word: string, change_to: string) => void
|
|
2141
2141
|
}
|
|
2142
2142
|
|
|
2143
2143
|
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
|
|
52
|
+
function language_lookup(language_code: string): Language | null
|
|
53
53
|
module LanguageChooser {
|
|
54
54
|
|
|
55
55
|
// Constructor properties interface
|
|
@@ -102,7 +102,7 @@ interface LanguageChooser {
|
|
|
102
102
|
// Owm methods of Gspell-1.Gspell.LanguageChooser
|
|
103
103
|
|
|
104
104
|
get_language(): Language | null
|
|
105
|
-
get_language_code(): string
|
|
105
|
+
get_language_code(): string
|
|
106
106
|
/**
|
|
107
107
|
* Sets the selected language.
|
|
108
108
|
* @param language a #GspellLanguage or %NULL to pick the default language.
|
|
@@ -170,7 +170,7 @@ interface Navigator extends GObject.InitiallyUnowned {
|
|
|
170
170
|
* @param word the word to change.
|
|
171
171
|
* @param change_to the replacement.
|
|
172
172
|
*/
|
|
173
|
-
change(word: string
|
|
173
|
+
change(word: string, change_to: string): void
|
|
174
174
|
/**
|
|
175
175
|
* Changes all occurrences of `word` by `change_to` in the text.
|
|
176
176
|
*
|
|
@@ -180,13 +180,13 @@ interface Navigator extends GObject.InitiallyUnowned {
|
|
|
180
180
|
* @param word the word to change.
|
|
181
181
|
* @param change_to the replacement.
|
|
182
182
|
*/
|
|
183
|
-
change_all(word: string
|
|
183
|
+
change_all(word: string, change_to: string): void
|
|
184
184
|
/**
|
|
185
185
|
* Goes to the next misspelled word. When called the first time, goes to the
|
|
186
186
|
* first misspelled word.
|
|
187
187
|
* @returns %TRUE if a next misspelled word has been found, %FALSE if the spell checking is finished or if an error occurred.
|
|
188
188
|
*/
|
|
189
|
-
goto_next(): [ /* returnType */ boolean, /* word */ string
|
|
189
|
+
goto_next(): [ /* returnType */ boolean, /* word */ string, /* spell_checker */ Checker ]
|
|
190
190
|
|
|
191
191
|
// Own virtual methods of Gspell-1.Gspell.Navigator
|
|
192
192
|
|
|
@@ -201,7 +201,7 @@ interface Navigator extends GObject.InitiallyUnowned {
|
|
|
201
201
|
* @param word the word to change.
|
|
202
202
|
* @param change_to the replacement.
|
|
203
203
|
*/
|
|
204
|
-
vfunc_change(word: string
|
|
204
|
+
vfunc_change(word: string, change_to: string): void
|
|
205
205
|
/**
|
|
206
206
|
* Changes all occurrences of `word` by `change_to` in the text.
|
|
207
207
|
*
|
|
@@ -212,14 +212,14 @@ interface Navigator extends GObject.InitiallyUnowned {
|
|
|
212
212
|
* @param word the word to change.
|
|
213
213
|
* @param change_to the replacement.
|
|
214
214
|
*/
|
|
215
|
-
vfunc_change_all(word: string
|
|
215
|
+
vfunc_change_all(word: string, change_to: string): void
|
|
216
216
|
/**
|
|
217
217
|
* Goes to the next misspelled word. When called the first time, goes to the
|
|
218
218
|
* first misspelled word.
|
|
219
219
|
* @virtual
|
|
220
220
|
* @returns %TRUE if a next misspelled word has been found, %FALSE if the spell checking is finished or if an error occurred.
|
|
221
221
|
*/
|
|
222
|
-
vfunc_goto_next(): [ /* returnType */ boolean, /* word */ string
|
|
222
|
+
vfunc_goto_next(): [ /* returnType */ boolean, /* word */ string, /* spell_checker */ Checker ]
|
|
223
223
|
|
|
224
224
|
// Class property signals of Gspell-1.Gspell.Navigator
|
|
225
225
|
|
|
@@ -303,7 +303,7 @@ interface Checker {
|
|
|
303
303
|
* @param word a word.
|
|
304
304
|
* @param word_length the byte length of `word,` or -1 if `word` is nul-terminated.
|
|
305
305
|
*/
|
|
306
|
-
add_word_to_personal(word: string
|
|
306
|
+
add_word_to_personal(word: string, word_length: number): void
|
|
307
307
|
/**
|
|
308
308
|
* Adds a word to the session dictionary. Each #GspellChecker instance has a
|
|
309
309
|
* different session dictionary. The session dictionary is lost when the
|
|
@@ -314,7 +314,7 @@ interface Checker {
|
|
|
314
314
|
* @param word a word.
|
|
315
315
|
* @param word_length the byte length of `word,` or -1 if `word` is nul-terminated.
|
|
316
316
|
*/
|
|
317
|
-
add_word_to_session(word: string
|
|
317
|
+
add_word_to_session(word: string, word_length: number): void
|
|
318
318
|
/**
|
|
319
319
|
* If the #GspellChecker:language is %NULL, i.e. when no dictonaries are
|
|
320
320
|
* available, this function returns %TRUE to limit the damage.
|
|
@@ -322,7 +322,7 @@ interface Checker {
|
|
|
322
322
|
* @param word_length the byte length of `word,` or -1 if `word` is nul-terminated.
|
|
323
323
|
* @returns %TRUE if @word is correctly spelled, %FALSE otherwise.
|
|
324
324
|
*/
|
|
325
|
-
check_word(word: string
|
|
325
|
+
check_word(word: string, word_length: number): boolean
|
|
326
326
|
/**
|
|
327
327
|
* Clears the session dictionary.
|
|
328
328
|
*/
|
|
@@ -335,7 +335,7 @@ interface Checker {
|
|
|
335
335
|
* @param word_length the byte length of `word,` or -1 if `word` is nul-terminated.
|
|
336
336
|
* @returns the list of suggestions.
|
|
337
337
|
*/
|
|
338
|
-
get_suggestions(word: string
|
|
338
|
+
get_suggestions(word: string, word_length: number): string[]
|
|
339
339
|
/**
|
|
340
340
|
* Informs the spell checker that `word` is replaced/corrected by `replacement`.
|
|
341
341
|
* @param word a word.
|
|
@@ -343,7 +343,7 @@ interface Checker {
|
|
|
343
343
|
* @param replacement the replacement word.
|
|
344
344
|
* @param replacement_length the byte length of `replacement,` or -1 if `replacement` is nul-terminated.
|
|
345
345
|
*/
|
|
346
|
-
set_correction(word: string
|
|
346
|
+
set_correction(word: string, word_length: number, replacement: string, replacement_length: number): void
|
|
347
347
|
/**
|
|
348
348
|
* Sets the language to use for the spell checking. If `language` is %NULL, the
|
|
349
349
|
* default language is picked with gspell_language_get_default().
|
|
@@ -354,8 +354,8 @@ interface Checker {
|
|
|
354
354
|
// Own virtual methods of Gspell-1.Gspell.Checker
|
|
355
355
|
|
|
356
356
|
vfunc_session_cleared(): void
|
|
357
|
-
vfunc_word_added_to_personal(word: string
|
|
358
|
-
vfunc_word_added_to_session(word: string
|
|
357
|
+
vfunc_word_added_to_personal(word: string): void
|
|
358
|
+
vfunc_word_added_to_session(word: string): void
|
|
359
359
|
|
|
360
360
|
// Own signals of Gspell-1.Gspell.Checker
|
|
361
361
|
|
|
@@ -489,7 +489,7 @@ interface CheckerDialog extends Atk.ImplementorIface, Gtk.Buildable {
|
|
|
489
489
|
* @param child the child widget
|
|
490
490
|
* @param child_property the name of a child property installed on the class of `container`
|
|
491
491
|
*/
|
|
492
|
-
child_notify(child: Gtk.Widget, child_property: string
|
|
492
|
+
child_notify(child: Gtk.Widget, child_property: string): void
|
|
493
493
|
|
|
494
494
|
// Overloads of child_notify
|
|
495
495
|
|
|
@@ -503,7 +503,7 @@ interface CheckerDialog extends Atk.ImplementorIface, Gtk.Buildable {
|
|
|
503
503
|
* Also see gtk_container_child_notify().
|
|
504
504
|
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
505
505
|
*/
|
|
506
|
-
child_notify(child_property: string
|
|
506
|
+
child_notify(child_property: string): void
|
|
507
507
|
/**
|
|
508
508
|
* Emits a #GtkWidget::child-notify signal for the
|
|
509
509
|
* [child property][child-properties] `child_property`
|
|
@@ -514,7 +514,7 @@ interface CheckerDialog extends Atk.ImplementorIface, Gtk.Buildable {
|
|
|
514
514
|
* Also see gtk_container_child_notify().
|
|
515
515
|
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
516
516
|
*/
|
|
517
|
-
child_notify(child_property: string
|
|
517
|
+
child_notify(child_property: string): void
|
|
518
518
|
|
|
519
519
|
// Class property signals of Gspell-1.Gspell.CheckerDialog
|
|
520
520
|
|
|
@@ -1061,7 +1061,7 @@ interface LanguageChooserButton extends Atk.ImplementorIface, LanguageChooser, G
|
|
|
1061
1061
|
* Also see gtk_container_child_notify().
|
|
1062
1062
|
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
1063
1063
|
*/
|
|
1064
|
-
child_notify(child_property: string
|
|
1064
|
+
child_notify(child_property: string): void
|
|
1065
1065
|
/**
|
|
1066
1066
|
* Emits a #GtkWidget::child-notify signal for the
|
|
1067
1067
|
* [child property][child-properties]
|
|
@@ -1073,7 +1073,7 @@ interface LanguageChooserButton extends Atk.ImplementorIface, LanguageChooser, G
|
|
|
1073
1073
|
* @param child the child widget
|
|
1074
1074
|
* @param child_property the name of a child property installed on the class of `container`
|
|
1075
1075
|
*/
|
|
1076
|
-
child_notify(child: Gtk.Widget, child_property: string
|
|
1076
|
+
child_notify(child: Gtk.Widget, child_property: string): void
|
|
1077
1077
|
|
|
1078
1078
|
// Overloads of child_notify
|
|
1079
1079
|
|
|
@@ -1087,7 +1087,7 @@ interface LanguageChooserButton extends Atk.ImplementorIface, LanguageChooser, G
|
|
|
1087
1087
|
* Also see gtk_container_child_notify().
|
|
1088
1088
|
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
1089
1089
|
*/
|
|
1090
|
-
child_notify(child_property: string
|
|
1090
|
+
child_notify(child_property: string): void
|
|
1091
1091
|
|
|
1092
1092
|
// Class property signals of Gspell-1.Gspell.LanguageChooserButton
|
|
1093
1093
|
|
|
@@ -1347,7 +1347,7 @@ interface LanguageChooserDialog extends Atk.ImplementorIface, LanguageChooser, G
|
|
|
1347
1347
|
* @param child the child widget
|
|
1348
1348
|
* @param child_property the name of a child property installed on the class of `container`
|
|
1349
1349
|
*/
|
|
1350
|
-
child_notify(child: Gtk.Widget, child_property: string
|
|
1350
|
+
child_notify(child: Gtk.Widget, child_property: string): void
|
|
1351
1351
|
|
|
1352
1352
|
// Overloads of child_notify
|
|
1353
1353
|
|
|
@@ -1361,7 +1361,7 @@ interface LanguageChooserDialog extends Atk.ImplementorIface, LanguageChooser, G
|
|
|
1361
1361
|
* Also see gtk_container_child_notify().
|
|
1362
1362
|
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
1363
1363
|
*/
|
|
1364
|
-
child_notify(child_property: string
|
|
1364
|
+
child_notify(child_property: string): void
|
|
1365
1365
|
/**
|
|
1366
1366
|
* Emits a #GtkWidget::child-notify signal for the
|
|
1367
1367
|
* [child property][child-properties] `child_property`
|
|
@@ -1372,7 +1372,7 @@ interface LanguageChooserDialog extends Atk.ImplementorIface, LanguageChooser, G
|
|
|
1372
1372
|
* Also see gtk_container_child_notify().
|
|
1373
1373
|
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
1374
1374
|
*/
|
|
1375
|
-
child_notify(child_property: string
|
|
1375
|
+
child_notify(child_property: string): void
|
|
1376
1376
|
|
|
1377
1377
|
// Class property signals of Gspell-1.Gspell.LanguageChooserDialog
|
|
1378
1378
|
|
|
@@ -1983,8 +1983,8 @@ interface CheckerClass {
|
|
|
1983
1983
|
// Own fields of Gspell-1.Gspell.CheckerClass
|
|
1984
1984
|
|
|
1985
1985
|
parent_class: GObject.ObjectClass
|
|
1986
|
-
word_added_to_personal: (checker: Checker, word: string
|
|
1987
|
-
word_added_to_session: (checker: Checker, word: string
|
|
1986
|
+
word_added_to_personal: (checker: Checker, word: string) => void
|
|
1987
|
+
word_added_to_session: (checker: Checker, word: string) => void
|
|
1988
1988
|
session_cleared: (checker: Checker) => void
|
|
1989
1989
|
padding: any[]
|
|
1990
1990
|
}
|
|
@@ -2059,14 +2059,14 @@ interface Language {
|
|
|
2059
2059
|
* Used by language bindings.
|
|
2060
2060
|
*/
|
|
2061
2061
|
free(): void
|
|
2062
|
-
get_code(): string
|
|
2062
|
+
get_code(): string
|
|
2063
2063
|
/**
|
|
2064
2064
|
* Returns the `language` name translated to the current locale. For example
|
|
2065
2065
|
* "French (Belgium)" is returned if the current locale is in English and the
|
|
2066
2066
|
* `language` code is fr_BE.
|
|
2067
2067
|
* @returns the @language name.
|
|
2068
2068
|
*/
|
|
2069
|
-
get_name(): string
|
|
2069
|
+
get_name(): string
|
|
2070
2070
|
}
|
|
2071
2071
|
|
|
2072
2072
|
class Language {
|
|
@@ -2083,7 +2083,7 @@ class Language {
|
|
|
2083
2083
|
* @returns the default #GspellLanguage, or %NULL if no dictionaries are available.
|
|
2084
2084
|
*/
|
|
2085
2085
|
static get_default(): Language | null
|
|
2086
|
-
static lookup(language_code: string
|
|
2086
|
+
static lookup(language_code: string): Language | null
|
|
2087
2087
|
}
|
|
2088
2088
|
|
|
2089
2089
|
interface LanguageChooserButtonClass {
|
|
@@ -2137,9 +2137,9 @@ interface NavigatorInterface {
|
|
|
2137
2137
|
// Own fields of Gspell-1.Gspell.NavigatorInterface
|
|
2138
2138
|
|
|
2139
2139
|
parent_interface: GObject.TypeInterface
|
|
2140
|
-
goto_next: (navigator: Navigator) => [ /* returnType */ boolean, /* word */ string
|
|
2141
|
-
change: (navigator: Navigator, word: string
|
|
2142
|
-
change_all: (navigator: Navigator, word: string
|
|
2140
|
+
goto_next: (navigator: Navigator) => [ /* returnType */ boolean, /* word */ string, /* spell_checker */ Checker ]
|
|
2141
|
+
change: (navigator: Navigator, word: string, change_to: string) => void
|
|
2142
|
+
change_all: (navigator: Navigator, word: string, change_to: string) => void
|
|
2143
2143
|
}
|
|
2144
2144
|
|
|
2145
2145
|
abstract class NavigatorInterface {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/gspell-1",
|
|
3
|
-
"version": "1.0.0-3.2.
|
|
3
|
+
"version": "1.0.0-3.2.7",
|
|
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",
|
|
@@ -25,20 +25,20 @@
|
|
|
25
25
|
"test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit gspell-1.d.cts"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@girs/atk-1.0": "^2.50.0-3.2.
|
|
29
|
-
"@girs/cairo-1.0": "^1.0.0-3.2.
|
|
30
|
-
"@girs/freetype2-2.0": "^2.0.0-3.2.
|
|
31
|
-
"@girs/gdk-3.0": "^3.24.38-3.2.
|
|
32
|
-
"@girs/gdkpixbuf-2.0": "^2.0.0-3.2.
|
|
33
|
-
"@girs/gio-2.0": "^2.78.0-3.2.
|
|
34
|
-
"@girs/gjs": "^3.2.
|
|
35
|
-
"@girs/glib-2.0": "^2.78.0-3.2.
|
|
36
|
-
"@girs/gmodule-2.0": "^2.0.0-3.2.
|
|
37
|
-
"@girs/gobject-2.0": "^2.78.0-3.2.
|
|
38
|
-
"@girs/gtk-3.0": "^3.24.38-3.2.
|
|
39
|
-
"@girs/harfbuzz-0.0": "^8.2.1-3.2.
|
|
40
|
-
"@girs/pango-1.0": "^1.51.0-3.2.
|
|
41
|
-
"@girs/xlib-2.0": "^2.0.0-3.2.
|
|
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/pango-1.0": "^1.51.0-3.2.7",
|
|
41
|
+
"@girs/xlib-2.0": "^2.0.0-3.2.7"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"typescript": "*"
|