@girs/cambalacheprivate-4.0 4.0.0-4.0.0-beta.11

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 ADDED
@@ -0,0 +1,86 @@
1
+
2
+ # CambalachePrivate-4.0
3
+
4
+ ![version](https://img.shields.io/npm/v/@girs/cambalacheprivate-4.0)
5
+ ![downloads/week](https://img.shields.io/npm/dw/@girs/cambalacheprivate-4.0)
6
+
7
+
8
+ GJS TypeScript type definitions for CambalachePrivate-4.0, generated from library version 4.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.11.
9
+
10
+
11
+ ## Install
12
+
13
+ To use this type definitions, install them with NPM:
14
+ ```bash
15
+ npm install @girs/cambalacheprivate-4.0
16
+ ```
17
+
18
+ ## Usage
19
+
20
+ You can import this package into your project like this:
21
+ ```ts
22
+ import CambalachePrivate from '@girs/cambalacheprivate-4.0';
23
+ ```
24
+
25
+ ### Ambient Modules
26
+
27
+ You can also use [ambient modules](https://github.com/gjsify/ts-for-gir/tree/main/packages/cli#ambient-modules) to import this module like you would do this in JavaScript.
28
+ For this you need to include `@girs/cambalacheprivate-4.0` or `@girs/cambalacheprivate-4.0/ambient` in your `tsconfig` or entry point Typescript file:
29
+
30
+ `index.ts`:
31
+ ```ts
32
+ import '@girs/cambalacheprivate-4.0'
33
+ ```
34
+
35
+ `tsconfig.json`:
36
+ ```json
37
+ {
38
+ "compilerOptions": {
39
+ ...
40
+ },
41
+ "include": ["@girs/cambalacheprivate-4.0"],
42
+ ...
43
+ }
44
+ ```
45
+
46
+ Now you can import the ambient module with TypeScript support:
47
+
48
+ ```ts
49
+ import CambalachePrivate from 'gi://CambalachePrivate?version=4.0';
50
+ ```
51
+
52
+ ### Global import
53
+
54
+ You can also import the module with Typescript support using the global `imports.gi` object of GJS.
55
+ For this you need to include `@girs/cambalacheprivate-4.0` or `@girs/cambalacheprivate-4.0/import` in your `tsconfig` or entry point Typescript file:
56
+
57
+ `index.ts`:
58
+ ```ts
59
+ import '@girs/cambalacheprivate-4.0'
60
+ ```
61
+
62
+ `tsconfig.json`:
63
+ ```json
64
+ {
65
+ "compilerOptions": {
66
+ ...
67
+ },
68
+ "include": ["@girs/cambalacheprivate-4.0"],
69
+ ...
70
+ }
71
+ ```
72
+
73
+ Now you have also type support for this, too:
74
+
75
+ ```ts
76
+ const CambalachePrivate = imports.gi.CambalachePrivate;
77
+ ```
78
+
79
+ ### Bundle
80
+
81
+ Depending on your project configuration, it is recommended to use a bundler like [esbuild](https://esbuild.github.io/). You can find examples using different bundlers [here](https://github.com/gjsify/ts-for-gir/tree/main/examples).
82
+
83
+ ## Other packages
84
+
85
+ All existing pre-generated packages can be found on [gjsify/types](https://github.com/gjsify/types).
86
+
@@ -0,0 +1,9 @@
1
+ declare module 'gi://CambalachePrivate?version=4.0' {
2
+ import CambalachePrivate40 from '@girs/cambalacheprivate-4.0';
3
+ export default CambalachePrivate40;
4
+ }
5
+
6
+ declare module 'gi://CambalachePrivate' {
7
+ import CambalachePrivate40 from 'gi://CambalachePrivate?version=4.0';
8
+ export default CambalachePrivate40;
9
+ }
@@ -0,0 +1,2 @@
1
+ export {}
2
+
@@ -0,0 +1,9 @@
1
+ import CambalachePrivate40 from '@girs/cambalacheprivate-4.0';
2
+
3
+ declare global {
4
+ export interface GjsGiImports {
5
+ CambalachePrivate: typeof CambalachePrivate40;
6
+ }
7
+ }
8
+
9
+ export default GjsGiImports;
@@ -0,0 +1,3 @@
1
+ const gi = globalThis.imports?.gi || {};
2
+ export default gi;
3
+
@@ -0,0 +1,506 @@
1
+ /**
2
+ * Type Definitions for Gjs (https://gjs.guide/)
3
+ *
4
+ * These type definitions are automatically generated, do not edit them by hand.
5
+ * If you found a bug fix it in `ts-for-gir` or create a bug report on https://github.com/gjsify/ts-for-gir
6
+ *
7
+ * The based EJS template file is used for the generated .d.ts file of each GIR module like Gtk-4.0, GObject-2.0, ...
8
+ */
9
+
10
+ // Module dependencies
11
+ import type Gtk from '@girs/gtk-4.0';
12
+ import type Gsk from '@girs/gsk-4.0';
13
+ import type Graphene from '@girs/graphene-1.0';
14
+ import type GObject from '@girs/gobject-2.0';
15
+ import type GLib from '@girs/glib-2.0';
16
+ import type Gdk from '@girs/gdk-4.0';
17
+ import type cairo from '@girs/cairo-1.0';
18
+ import type PangoCairo from '@girs/pangocairo-1.0';
19
+ import type Pango from '@girs/pango-1.0';
20
+ import type HarfBuzz from '@girs/harfbuzz-0.0';
21
+ import type freetype2 from '@girs/freetype2-2.0';
22
+ import type Gio from '@girs/gio-2.0';
23
+ import type GModule from '@girs/gmodule-2.0';
24
+ import type GdkPixbuf from '@girs/gdkpixbuf-2.0';
25
+
26
+ export namespace CambalachePrivate {
27
+ /**
28
+ * CambalachePrivate-4.0
29
+ */
30
+
31
+ function object_set_property_from_string(
32
+ object: GObject.Object,
33
+ property_name: string,
34
+ value?: string | null,
35
+ ): void;
36
+ module BuilderScope {
37
+ // Constructor properties interface
38
+
39
+ interface ConstructorProps extends Gtk.BuilderCScope.ConstructorProps, Gtk.BuilderScope.ConstructorProps {}
40
+ }
41
+
42
+ class BuilderScope extends Gtk.BuilderCScope implements Gtk.BuilderScope {
43
+ static $gtype: GObject.GType<BuilderScope>;
44
+
45
+ // Constructors of CambalachePrivate.BuilderScope
46
+
47
+ constructor(properties?: Partial<BuilderScope.ConstructorProps>, ...args: any[]);
48
+
49
+ _init(...args: any[]): void;
50
+
51
+ // Inherited methods
52
+ /**
53
+ * Create a closure with the given arguments. See gtk_builder_create_closure()
54
+ * for more details on those.
55
+ * The C implementation will try to use dlsym() to locate the function name and then
56
+ * g_cclosure_new() to create a closure for the symbol.
57
+ * The default implementation just fails and returns %NULL.
58
+ * @param builder
59
+ * @param function_name
60
+ * @param flags
61
+ * @param object
62
+ */
63
+ vfunc_create_closure(
64
+ builder: Gtk.Builder,
65
+ function_name: string,
66
+ flags: Gtk.BuilderClosureFlags,
67
+ object: GObject.Object,
68
+ ): GObject.Closure;
69
+ /**
70
+ * Try to lookup a `GType` via the given function name, specified
71
+ * explicitly in a GtkBuilder file, like via the "type-func" attribute in the `<object>` tag.
72
+ * This function is very rarely used.
73
+ * The C implementation will use dlsym() and call the resulting function as a `GTypeFunc`.
74
+ * The default implementation will fail and just return %G_TYPE_INVALID.
75
+ * @param builder
76
+ * @param function_name
77
+ */
78
+ vfunc_get_type_from_function(builder: Gtk.Builder, function_name: string): GObject.GType;
79
+ /**
80
+ * Try to lookup a `GType` via the its name. See
81
+ * gtk_builder_get_type_from_name() for more details.
82
+ * The C implementation will use g_type_from_name() and if that fails try to guess the
83
+ * correct function name for registering the type and then use dlsym() to load it.
84
+ * The default implementation just tries g_type_from_name() and otherwise fails.
85
+ * @param builder
86
+ * @param type_name
87
+ */
88
+ vfunc_get_type_from_name(builder: Gtk.Builder, type_name: string): GObject.GType;
89
+ /**
90
+ * Creates a binding between `source_property` on `source` and `target_property`
91
+ * on `target`.
92
+ *
93
+ * Whenever the `source_property` is changed the `target_property` is
94
+ * updated using the same value. For instance:
95
+ *
96
+ *
97
+ * ```c
98
+ * g_object_bind_property (action, "active", widget, "sensitive", 0);
99
+ * ```
100
+ *
101
+ *
102
+ * Will result in the "sensitive" property of the widget #GObject instance to be
103
+ * updated with the same value of the "active" property of the action #GObject
104
+ * instance.
105
+ *
106
+ * If `flags` contains %G_BINDING_BIDIRECTIONAL then the binding will be mutual:
107
+ * if `target_property` on `target` changes then the `source_property` on `source`
108
+ * will be updated as well.
109
+ *
110
+ * The binding will automatically be removed when either the `source` or the
111
+ * `target` instances are finalized. To remove the binding without affecting the
112
+ * `source` and the `target` you can just call g_object_unref() on the returned
113
+ * #GBinding instance.
114
+ *
115
+ * Removing the binding by calling g_object_unref() on it must only be done if
116
+ * the binding, `source` and `target` are only used from a single thread and it
117
+ * is clear that both `source` and `target` outlive the binding. Especially it
118
+ * is not safe to rely on this if the binding, `source` or `target` can be
119
+ * finalized from different threads. Keep another reference to the binding and
120
+ * use g_binding_unbind() instead to be on the safe side.
121
+ *
122
+ * A #GObject can have multiple bindings.
123
+ * @param source_property the property on @source to bind
124
+ * @param target the target #GObject
125
+ * @param target_property the property on @target to bind
126
+ * @param flags flags to pass to #GBinding
127
+ * @returns the #GBinding instance representing the binding between the two #GObject instances. The binding is released whenever the #GBinding reference count reaches zero.
128
+ */
129
+ bind_property(
130
+ source_property: string,
131
+ target: GObject.Object,
132
+ target_property: string,
133
+ flags: GObject.BindingFlags,
134
+ ): GObject.Binding;
135
+ /**
136
+ * Complete version of g_object_bind_property().
137
+ *
138
+ * Creates a binding between `source_property` on `source` and `target_property`
139
+ * on `target,` allowing you to set the transformation functions to be used by
140
+ * the binding.
141
+ *
142
+ * If `flags` contains %G_BINDING_BIDIRECTIONAL then the binding will be mutual:
143
+ * if `target_property` on `target` changes then the `source_property` on `source`
144
+ * will be updated as well. The `transform_from` function is only used in case
145
+ * of bidirectional bindings, otherwise it will be ignored
146
+ *
147
+ * The binding will automatically be removed when either the `source` or the
148
+ * `target` instances are finalized. This will release the reference that is
149
+ * being held on the #GBinding instance; if you want to hold on to the
150
+ * #GBinding instance, you will need to hold a reference to it.
151
+ *
152
+ * To remove the binding, call g_binding_unbind().
153
+ *
154
+ * A #GObject can have multiple bindings.
155
+ *
156
+ * The same `user_data` parameter will be used for both `transform_to`
157
+ * and `transform_from` transformation functions; the `notify` function will
158
+ * be called once, when the binding is removed. If you need different data
159
+ * for each transformation function, please use
160
+ * g_object_bind_property_with_closures() instead.
161
+ * @param source_property the property on @source to bind
162
+ * @param target the target #GObject
163
+ * @param target_property the property on @target to bind
164
+ * @param flags flags to pass to #GBinding
165
+ * @param transform_to the transformation function from the @source to the @target, or %NULL to use the default
166
+ * @param transform_from the transformation function from the @target to the @source, or %NULL to use the default
167
+ * @param notify a function to call when disposing the binding, to free resources used by the transformation functions, or %NULL if not required
168
+ * @returns the #GBinding instance representing the binding between the two #GObject instances. The binding is released whenever the #GBinding reference count reaches zero.
169
+ */
170
+ bind_property_full(
171
+ source_property: string,
172
+ target: GObject.Object,
173
+ target_property: string,
174
+ flags: GObject.BindingFlags,
175
+ transform_to?: GObject.BindingTransformFunc | null,
176
+ transform_from?: GObject.BindingTransformFunc | null,
177
+ notify?: GLib.DestroyNotify | null,
178
+ ): GObject.Binding;
179
+ // Conflicted with GObject.Object.bind_property_full
180
+ bind_property_full(...args: never[]): any;
181
+ /**
182
+ * This function is intended for #GObject implementations to re-enforce
183
+ * a [floating][floating-ref] object reference. Doing this is seldom
184
+ * required: all #GInitiallyUnowneds are created with a floating reference
185
+ * which usually just needs to be sunken by calling g_object_ref_sink().
186
+ */
187
+ force_floating(): void;
188
+ /**
189
+ * Increases the freeze count on `object`. If the freeze count is
190
+ * non-zero, the emission of "notify" signals on `object` is
191
+ * stopped. The signals are queued until the freeze count is decreased
192
+ * to zero. Duplicate notifications are squashed so that at most one
193
+ * #GObject::notify signal is emitted for each property modified while the
194
+ * object is frozen.
195
+ *
196
+ * This is necessary for accessors that modify multiple properties to prevent
197
+ * premature notification while the object is still being modified.
198
+ */
199
+ freeze_notify(): void;
200
+ /**
201
+ * Gets a named field from the objects table of associations (see g_object_set_data()).
202
+ * @param key name of the key for that association
203
+ * @returns the data if found, or %NULL if no such data exists.
204
+ */
205
+ get_data(key: string): any | null;
206
+ get_property(property_name: string): any;
207
+ /**
208
+ * This function gets back user data pointers stored via
209
+ * g_object_set_qdata().
210
+ * @param quark A #GQuark, naming the user data pointer
211
+ * @returns The user data pointer set, or %NULL
212
+ */
213
+ get_qdata(quark: GLib.Quark): any | null;
214
+ /**
215
+ * Gets `n_properties` properties for an `object`.
216
+ * Obtained properties will be set to `values`. All properties must be valid.
217
+ * Warnings will be emitted and undefined behaviour may result if invalid
218
+ * properties are passed in.
219
+ * @param names the names of each property to get
220
+ * @param values the values of each property to get
221
+ */
222
+ getv(names: string[], values: (GObject.Value | any)[]): void;
223
+ /**
224
+ * Checks whether `object` has a [floating][floating-ref] reference.
225
+ * @returns %TRUE if @object has a floating reference
226
+ */
227
+ is_floating(): boolean;
228
+ /**
229
+ * Emits a "notify" signal for the property `property_name` on `object`.
230
+ *
231
+ * When possible, eg. when signaling a property change from within the class
232
+ * that registered the property, you should use g_object_notify_by_pspec()
233
+ * instead.
234
+ *
235
+ * Note that emission of the notify signal may be blocked with
236
+ * g_object_freeze_notify(). In this case, the signal emissions are queued
237
+ * and will be emitted (in reverse order) when g_object_thaw_notify() is
238
+ * called.
239
+ * @param property_name the name of a property installed on the class of @object.
240
+ */
241
+ notify(property_name: string): void;
242
+ /**
243
+ * Emits a "notify" signal for the property specified by `pspec` on `object`.
244
+ *
245
+ * This function omits the property name lookup, hence it is faster than
246
+ * g_object_notify().
247
+ *
248
+ * One way to avoid using g_object_notify() from within the
249
+ * class that registered the properties, and using g_object_notify_by_pspec()
250
+ * instead, is to store the GParamSpec used with
251
+ * g_object_class_install_property() inside a static array, e.g.:
252
+ *
253
+ *
254
+ * ```c
255
+ * typedef enum
256
+ * {
257
+ * PROP_FOO = 1,
258
+ * PROP_LAST
259
+ * } MyObjectProperty;
260
+ *
261
+ * static GParamSpec *properties[PROP_LAST];
262
+ *
263
+ * static void
264
+ * my_object_class_init (MyObjectClass *klass)
265
+ * {
266
+ * properties[PROP_FOO] = g_param_spec_int ("foo", NULL, NULL,
267
+ * 0, 100,
268
+ * 50,
269
+ * G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
270
+ * g_object_class_install_property (gobject_class,
271
+ * PROP_FOO,
272
+ * properties[PROP_FOO]);
273
+ * }
274
+ * ```
275
+ *
276
+ *
277
+ * and then notify a change on the "foo" property with:
278
+ *
279
+ *
280
+ * ```c
281
+ * g_object_notify_by_pspec (self, properties[PROP_FOO]);
282
+ * ```
283
+ *
284
+ * @param pspec the #GParamSpec of a property installed on the class of @object.
285
+ */
286
+ notify_by_pspec(pspec: GObject.ParamSpec): void;
287
+ /**
288
+ * Increases the reference count of `object`.
289
+ *
290
+ * Since GLib 2.56, if `GLIB_VERSION_MAX_ALLOWED` is 2.56 or greater, the type
291
+ * of `object` will be propagated to the return type (using the GCC typeof()
292
+ * extension), so any casting the caller needs to do on the return type must be
293
+ * explicit.
294
+ * @returns the same @object
295
+ */
296
+ ref(): GObject.Object;
297
+ /**
298
+ * Increase the reference count of `object,` and possibly remove the
299
+ * [floating][floating-ref] reference, if `object` has a floating reference.
300
+ *
301
+ * In other words, if the object is floating, then this call "assumes
302
+ * ownership" of the floating reference, converting it to a normal
303
+ * reference by clearing the floating flag while leaving the reference
304
+ * count unchanged. If the object is not floating, then this call
305
+ * adds a new normal reference increasing the reference count by one.
306
+ *
307
+ * Since GLib 2.56, the type of `object` will be propagated to the return type
308
+ * under the same conditions as for g_object_ref().
309
+ * @returns @object
310
+ */
311
+ ref_sink(): GObject.Object;
312
+ /**
313
+ * Releases all references to other objects. This can be used to break
314
+ * reference cycles.
315
+ *
316
+ * This function should only be called from object system implementations.
317
+ */
318
+ run_dispose(): void;
319
+ /**
320
+ * Each object carries around a table of associations from
321
+ * strings to pointers. This function lets you set an association.
322
+ *
323
+ * If the object already had an association with that name,
324
+ * the old association will be destroyed.
325
+ *
326
+ * Internally, the `key` is converted to a #GQuark using g_quark_from_string().
327
+ * This means a copy of `key` is kept permanently (even after `object` has been
328
+ * finalized) — so it is recommended to only use a small, bounded set of values
329
+ * for `key` in your program, to avoid the #GQuark storage growing unbounded.
330
+ * @param key name of the key
331
+ * @param data data to associate with that key
332
+ */
333
+ set_data(key: string, data?: any | null): void;
334
+ set_property(property_name: string, value: any): void;
335
+ /**
336
+ * Remove a specified datum from the object's data associations,
337
+ * without invoking the association's destroy handler.
338
+ * @param key name of the key
339
+ * @returns the data if found, or %NULL if no such data exists.
340
+ */
341
+ steal_data(key: string): any | null;
342
+ /**
343
+ * This function gets back user data pointers stored via
344
+ * g_object_set_qdata() and removes the `data` from object
345
+ * without invoking its destroy() function (if any was
346
+ * set).
347
+ * Usually, calling this function is only required to update
348
+ * user data pointers with a destroy notifier, for example:
349
+ *
350
+ * ```c
351
+ * void
352
+ * object_add_to_user_list (GObject *object,
353
+ * const gchar *new_string)
354
+ * {
355
+ * // the quark, naming the object data
356
+ * GQuark quark_string_list = g_quark_from_static_string ("my-string-list");
357
+ * // retrieve the old string list
358
+ * GList *list = g_object_steal_qdata (object, quark_string_list);
359
+ *
360
+ * // prepend new string
361
+ * list = g_list_prepend (list, g_strdup (new_string));
362
+ * // this changed 'list', so we need to set it again
363
+ * g_object_set_qdata_full (object, quark_string_list, list, free_string_list);
364
+ * }
365
+ * static void
366
+ * free_string_list (gpointer data)
367
+ * {
368
+ * GList *node, *list = data;
369
+ *
370
+ * for (node = list; node; node = node->next)
371
+ * g_free (node->data);
372
+ * g_list_free (list);
373
+ * }
374
+ * ```
375
+ *
376
+ * Using g_object_get_qdata() in the above example, instead of
377
+ * g_object_steal_qdata() would have left the destroy function set,
378
+ * and thus the partial string list would have been freed upon
379
+ * g_object_set_qdata_full().
380
+ * @param quark A #GQuark, naming the user data pointer
381
+ * @returns The user data pointer set, or %NULL
382
+ */
383
+ steal_qdata(quark: GLib.Quark): any | null;
384
+ /**
385
+ * Reverts the effect of a previous call to
386
+ * g_object_freeze_notify(). The freeze count is decreased on `object`
387
+ * and when it reaches zero, queued "notify" signals are emitted.
388
+ *
389
+ * Duplicate notifications for each property are squashed so that at most one
390
+ * #GObject::notify signal is emitted for each property, in the reverse order
391
+ * in which they have been queued.
392
+ *
393
+ * It is an error to call this function when the freeze count is zero.
394
+ */
395
+ thaw_notify(): void;
396
+ /**
397
+ * Decreases the reference count of `object`. When its reference count
398
+ * drops to 0, the object is finalized (i.e. its memory is freed).
399
+ *
400
+ * If the pointer to the #GObject may be reused in future (for example, if it is
401
+ * an instance variable of another object), it is recommended to clear the
402
+ * pointer to %NULL rather than retain a dangling pointer to a potentially
403
+ * invalid #GObject instance. Use g_clear_object() for this.
404
+ */
405
+ unref(): void;
406
+ /**
407
+ * This function essentially limits the life time of the `closure` to
408
+ * the life time of the object. That is, when the object is finalized,
409
+ * the `closure` is invalidated by calling g_closure_invalidate() on
410
+ * it, in order to prevent invocations of the closure with a finalized
411
+ * (nonexisting) object. Also, g_object_ref() and g_object_unref() are
412
+ * added as marshal guards to the `closure,` to ensure that an extra
413
+ * reference count is held on `object` during invocation of the
414
+ * `closure`. Usually, this function will be called on closures that
415
+ * use this `object` as closure data.
416
+ * @param closure #GClosure to watch
417
+ */
418
+ watch_closure(closure: GObject.Closure): void;
419
+ /**
420
+ * the `constructed` function is called by g_object_new() as the
421
+ * final step of the object creation process. At the point of the call, all
422
+ * construction properties have been set on the object. The purpose of this
423
+ * call is to allow for object initialisation steps that can only be performed
424
+ * after construction properties have been set. `constructed` implementors
425
+ * should chain up to the `constructed` call of their parent class to allow it
426
+ * to complete its initialisation.
427
+ */
428
+ vfunc_constructed(): void;
429
+ /**
430
+ * emits property change notification for a bunch
431
+ * of properties. Overriding `dispatch_properties_changed` should be rarely
432
+ * needed.
433
+ * @param n_pspecs
434
+ * @param pspecs
435
+ */
436
+ vfunc_dispatch_properties_changed(n_pspecs: number, pspecs: GObject.ParamSpec): void;
437
+ /**
438
+ * the `dispose` function is supposed to drop all references to other
439
+ * objects, but keep the instance otherwise intact, so that client method
440
+ * invocations still work. It may be run multiple times (due to reference
441
+ * loops). Before returning, `dispose` should chain up to the `dispose` method
442
+ * of the parent class.
443
+ */
444
+ vfunc_dispose(): void;
445
+ /**
446
+ * instance finalization function, should finish the finalization of
447
+ * the instance begun in `dispose` and chain up to the `finalize` method of the
448
+ * parent class.
449
+ */
450
+ vfunc_finalize(): void;
451
+ /**
452
+ * the generic getter for all properties of this type. Should be
453
+ * overridden for every type with properties.
454
+ * @param property_id
455
+ * @param value
456
+ * @param pspec
457
+ */
458
+ vfunc_get_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
459
+ /**
460
+ * Emits a "notify" signal for the property `property_name` on `object`.
461
+ *
462
+ * When possible, eg. when signaling a property change from within the class
463
+ * that registered the property, you should use g_object_notify_by_pspec()
464
+ * instead.
465
+ *
466
+ * Note that emission of the notify signal may be blocked with
467
+ * g_object_freeze_notify(). In this case, the signal emissions are queued
468
+ * and will be emitted (in reverse order) when g_object_thaw_notify() is
469
+ * called.
470
+ * @param pspec
471
+ */
472
+ vfunc_notify(pspec: GObject.ParamSpec): void;
473
+ /**
474
+ * the generic setter for all properties of this type. Should be
475
+ * overridden for every type with properties. If implementations of
476
+ * `set_property` don't emit property change notification explicitly, this will
477
+ * be done implicitly by the type system. However, if the notify signal is
478
+ * emitted explicitly, the type system will not emit it a second time.
479
+ * @param property_id
480
+ * @param value
481
+ * @param pspec
482
+ */
483
+ vfunc_set_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
484
+ disconnect(id: number): void;
485
+ set(properties: { [key: string]: any }): void;
486
+ block_signal_handler(id: number): any;
487
+ unblock_signal_handler(id: number): any;
488
+ stop_emission_by_name(detailedName: string): any;
489
+ }
490
+
491
+ type BuilderScopeClass = typeof BuilderScope;
492
+ /**
493
+ * Name of the imported GIR library
494
+ * `see` https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
495
+ */
496
+ const __name__: string;
497
+ /**
498
+ * Version of the imported GIR library
499
+ * `see` https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
500
+ */
501
+ const __version__: string;
502
+ }
503
+
504
+ export default CambalachePrivate;
505
+
506
+ // END
@@ -0,0 +1,5 @@
1
+
2
+ // @ts-expect-error
3
+ import CambalachePrivate from 'gi://CambalachePrivate?version=4.0';
4
+ export default CambalachePrivate;
5
+
package/index.d.ts ADDED
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Type Definitions for Gjs (https://gjs.guide/)
3
+ *
4
+ * These type definitions are automatically generated, do not edit them by hand.
5
+ * If you found a bug fix it in `ts-for-gir` or create a bug report on https://github.com/gjsify/ts-for-gir
6
+ *
7
+ * This template is used to generate the index.d.ts file of each GIR module like Gtk-4.0, GObject-2.0, ...
8
+ */
9
+
10
+ import './cambalacheprivate-4.0-ambient.d.ts';
11
+
12
+ import './cambalacheprivate-4.0-import.d.ts';
13
+
14
+ import CambalachePrivate from './cambalacheprivate-4.0.js';
15
+ export default CambalachePrivate;
package/index.js ADDED
@@ -0,0 +1,5 @@
1
+
2
+ // @ts-expect-error
3
+ import CambalachePrivate from './cambalacheprivate-4.0.js';
4
+ export default CambalachePrivate;
5
+
package/package.json ADDED
@@ -0,0 +1,71 @@
1
+ {
2
+ "name": "@girs/cambalacheprivate-4.0",
3
+ "version": "4.0.0-4.0.0-beta.11",
4
+ "description": "GJS TypeScript type definitions for CambalachePrivate-4.0, generated from library version 4.0.0",
5
+ "type": "module",
6
+ "module": "cambalacheprivate-4.0.js",
7
+ "main": "cambalacheprivate-4.0.js",
8
+ "exports": {
9
+ "./ambient": {
10
+ "types": "./cambalacheprivate-4.0-ambient.d.ts",
11
+ "import": "./cambalacheprivate-4.0-ambient.js",
12
+ "default": "./cambalacheprivate-4.0-ambient.js"
13
+ },
14
+ "./import": {
15
+ "types": "./cambalacheprivate-4.0-import.d.ts",
16
+ "import": "./cambalacheprivate-4.0-import.js",
17
+ "default": "./cambalacheprivate-4.0-import.js"
18
+ },
19
+ "./cambalacheprivate-4.0": {
20
+ "types": "./cambalacheprivate-4.0.d.ts",
21
+ "import": "./cambalacheprivate-4.0.js",
22
+ "default": "./cambalacheprivate-4.0.js"
23
+ },
24
+ ".": {
25
+ "types": "./index.d.ts",
26
+ "import": "./index.js",
27
+ "default": "./index.js"
28
+ }
29
+ },
30
+ "scripts": {
31
+ "test": "tsc --project tsconfig.json"
32
+ },
33
+ "dependencies": {
34
+ "@girs/cairo-1.0": "^1.0.0-4.0.0-beta.11",
35
+ "@girs/freetype2-2.0": "^2.0.0-4.0.0-beta.11",
36
+ "@girs/gdk-4.0": "^4.0.0-4.0.0-beta.11",
37
+ "@girs/gdkpixbuf-2.0": "^2.0.0-4.0.0-beta.11",
38
+ "@girs/gio-2.0": "^2.80.3-4.0.0-beta.11",
39
+ "@girs/gjs": "^4.0.0-beta.11",
40
+ "@girs/glib-2.0": "^2.80.3-4.0.0-beta.11",
41
+ "@girs/gmodule-2.0": "^2.0.0-4.0.0-beta.11",
42
+ "@girs/gobject-2.0": "^2.80.3-4.0.0-beta.11",
43
+ "@girs/graphene-1.0": "^1.0.0-4.0.0-beta.11",
44
+ "@girs/gsk-4.0": "^4.0.0-4.0.0-beta.11",
45
+ "@girs/gtk-4.0": "^4.14.4-4.0.0-beta.11",
46
+ "@girs/harfbuzz-0.0": "^8.4.0-4.0.0-beta.11",
47
+ "@girs/pango-1.0": "^1.54.0-4.0.0-beta.11",
48
+ "@girs/pangocairo-1.0": "^1.0.0-4.0.0-beta.11"
49
+ },
50
+ "devDependencies": {
51
+ "typescript": "*"
52
+ },
53
+ "keywords": [
54
+ "Gir",
55
+ "TypeScript",
56
+ "types",
57
+ "GObject-Introspection",
58
+ "GJS",
59
+ "CambalachePrivate-4.0"
60
+ ],
61
+ "author": "ts-for-gir",
62
+ "license": "MIT",
63
+ "repository": {
64
+ "type": "git",
65
+ "url": "git+https://github.com/gjsify/ts-for-gir.git"
66
+ },
67
+ "bugs": {
68
+ "url": "https://github.com/gjsify/ts-for-gir/issues"
69
+ },
70
+ "homepage": "https://github.com/gjsify/types/tree/main/cambalacheprivate-4.0#readme"
71
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,23 @@
1
+ {
2
+ "compilerOptions": {
3
+ // General settings for code interpretation
4
+ "target": "ESNext",
5
+ "module": "NodeNext",
6
+ "lib": ["ESNext"],
7
+ "types": [],
8
+ "experimentalDecorators": true,
9
+ "moduleResolution": "NodeNext",
10
+ "noEmit": true,
11
+ "noEmitOnError": false,
12
+ "baseUrl": "./",
13
+ "rootDir": ".",
14
+ // General settings for code generation
15
+ "removeComments": false,
16
+ "inlineSourceMap": false,
17
+ "inlineSources": false,
18
+ "newLine": "LF"
19
+ },
20
+ "include": ["./cambalacheprivate-4.0.d.ts"]
21
+ }
22
+
23
+
package/typedoc.json ADDED
@@ -0,0 +1,7 @@
1
+ {
2
+ "entryPoints": ["./cambalacheprivate-4.0.d.ts"],
3
+ "readme": "./README.md",
4
+ "name": "CambalachePrivate-4.0",
5
+ "tsconfig": "./tsconfig.json"
6
+ }
7
+