@girs/cogl-10 10.0.0-3.2.6 → 10.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/cogl-10)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for Cogl-10, generated from library version 10.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.6.
8
+ GJS TypeScript type definitions for Cogl-10, generated from library version 10.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/cogl-10.d.cts CHANGED
@@ -1103,7 +1103,7 @@ export function pixel_format_get_n_planes(format: PixelFormat): number
1103
1103
  * @param format a #CoglPixelFormat
1104
1104
  * @returns A string representation of @format.
1105
1105
  */
1106
- export function pixel_format_to_string(format: PixelFormat): string | null
1106
+ export function pixel_format_to_string(format: PixelFormat): string
1107
1107
  /**
1108
1108
  * Attaches a shader to a program object. A program can have multiple
1109
1109
  * vertex or fragment shaders but only one of them may provide a
@@ -1121,7 +1121,7 @@ export function program_attach_shader(program_handle: Handle, shader_handle: Han
1121
1121
  * @param uniform_name the name of a uniform.
1122
1122
  * @returns the offset of a uniform in a specified program.
1123
1123
  */
1124
- export function program_get_uniform_location(handle: Handle, uniform_name: string | null): number
1124
+ export function program_get_uniform_location(handle: Handle, uniform_name: string): number
1125
1125
  /**
1126
1126
  * Links a program making it ready for use. Note that calling this
1127
1127
  * function is optional. If it is not called the program will
@@ -1175,8 +1175,8 @@ export function program_set_uniform_int(program: Handle, uniform_location: numbe
1175
1175
  export function program_set_uniform_matrix(program: Handle, uniform_location: number, dimensions: number, transpose: boolean, value: number[]): void
1176
1176
  export function scanout_error_quark(): GLib.Quark
1177
1177
  export function set_tracing_disabled_on_thread(main_context: GLib.MainContext): void
1178
- export function set_tracing_enabled_on_thread(main_context: GLib.MainContext, group: string | null, filename: string | null): void
1179
- export function set_tracing_enabled_on_thread_with_fd(main_context: GLib.MainContext, group: string | null, fd: number): void
1178
+ export function set_tracing_enabled_on_thread(main_context: GLib.MainContext, group: string, filename: string): void
1179
+ export function set_tracing_enabled_on_thread_with_fd(main_context: GLib.MainContext, group: string, fd: number): void
1180
1180
  /**
1181
1181
  * Retrieves the type of a shader #CoglHandle
1182
1182
  * @param handle #CoglHandle for a shader.
@@ -1193,7 +1193,7 @@ export function shader_get_type(handle: Handle): ShaderType
1193
1193
  * @param shader #CoglHandle for a shader.
1194
1194
  * @param source Shader source.
1195
1195
  */
1196
- export function shader_source(shader: Handle, source: string | null): void
1196
+ export function shader_source(shader: Handle, source: string): void
1197
1197
  export function texture_error_quark(): number
1198
1198
  /**
1199
1199
  * Creates a #CoglTexture from a #CoglBitmap.
@@ -1222,8 +1222,8 @@ export function texture_new_from_data(width: number, height: number, flags: Text
1222
1222
  * @param internal_format the #CoglPixelFormat to use for the GPU storage of the texture. If %COGL_PIXEL_FORMAT_ANY is given then a premultiplied format similar to the format of the source data will be used. The default blending equations of Cogl expect premultiplied color data; the main use of passing a non-premultiplied format here is if you have non-premultiplied source data and are going to adjust the blend mode (see cogl_material_set_blend()) or use the data for something other than straight blending.
1223
1223
  * @returns A newly created #CoglTexture or %NULL on failure
1224
1224
  */
1225
- export function texture_new_from_file(filename: string | null, flags: TextureFlags, internal_format: PixelFormat): Texture
1226
- export function trace_describe(head: TraceHead, description: string | null): void
1225
+ export function texture_new_from_file(filename: string, flags: TextureFlags, internal_format: PixelFormat): Texture
1226
+ export function trace_describe(head: TraceHead, description: string): void
1227
1227
  export function trace_end(head: TraceHead): void
1228
1228
  /**
1229
1229
  * A callback function to use for cogl_debug_object_foreach_type().
@@ -1339,7 +1339,7 @@ export interface Texture extends Object {
1339
1339
  * @param key name of the key for that association
1340
1340
  * @returns the data if found, or %NULL if no such data exists.
1341
1341
  */
1342
- get_data(key: string | null): any | null
1342
+ get_data(key: string): any | null
1343
1343
  /**
1344
1344
  * Queries the GL handles for a GPU side texture through its #CoglTexture.
1345
1345
  *
@@ -1469,7 +1469,7 @@ export interface Texture extends Object {
1469
1469
  * @param key name of the key
1470
1470
  * @param data data to associate with that key
1471
1471
  */
1472
- set_data(key: string | null, data: any | null): void
1472
+ set_data(key: string, data: any | null): void
1473
1473
  /**
1474
1474
  * Affects the internal storage format for this texture by specifying
1475
1475
  * whether red, green and blue color components should be stored as
@@ -1577,7 +1577,7 @@ export class Texture extends GObject.Object {
1577
1577
  * @param internal_format the #CoglPixelFormat to use for the GPU storage of the texture. If %COGL_PIXEL_FORMAT_ANY is given then a premultiplied format similar to the format of the source data will be used. The default blending equations of Cogl expect premultiplied color data; the main use of passing a non-premultiplied format here is if you have non-premultiplied source data and are going to adjust the blend mode (see cogl_material_set_blend()) or use the data for something other than straight blending.
1578
1578
  * @returns A newly created #CoglTexture or %NULL on failure
1579
1579
  */
1580
- static new_from_file(filename: string | null, flags: TextureFlags, internal_format: PixelFormat): Texture
1580
+ static new_from_file(filename: string, flags: TextureFlags, internal_format: PixelFormat): Texture
1581
1581
  static error_quark(): number
1582
1582
  }
1583
1583
 
@@ -1624,7 +1624,7 @@ export class Bitmap extends Object {
1624
1624
  * @param filename the file to load.
1625
1625
  * @returns a #CoglBitmap to the new loaded image data, or %NULL if loading the image failed.
1626
1626
  */
1627
- static new_from_file(filename: string | null): Bitmap
1627
+ static new_from_file(filename: string): Bitmap
1628
1628
  _init(config?: Bitmap.ConstructorProperties): void
1629
1629
  static error_quark(): number
1630
1630
  /**
@@ -1633,7 +1633,7 @@ export class Bitmap extends Object {
1633
1633
  * @param filename the file to check
1634
1634
  * @returns %TRUE if the image was successfully parsed
1635
1635
  */
1636
- static get_size_from_file(filename: string | null): [ /* returnType */ boolean, /* width */ number, /* height */ number ]
1636
+ static get_size_from_file(filename: string): [ /* returnType */ boolean, /* width */ number, /* height */ number ]
1637
1637
  }
1638
1638
 
1639
1639
  export module Context {
@@ -1784,10 +1784,9 @@ export module Framebuffer {
1784
1784
 
1785
1785
  // Own constructor properties of Cogl-10.Cogl.Framebuffer
1786
1786
 
1787
- driver_config?: any | null
1787
+ driverConfig?: any | null
1788
1788
  height?: number | null
1789
1789
  width?: number | null
1790
- driverConfig?: any | null
1791
1790
  }
1792
1791
 
1793
1792
  }
@@ -1796,7 +1795,6 @@ export interface Framebuffer {
1796
1795
 
1797
1796
  // Own properties of Cogl-10.Cogl.Framebuffer
1798
1797
 
1799
- readonly driver_config: any
1800
1798
  readonly driverConfig: any
1801
1799
  height: number
1802
1800
  width: number
@@ -3194,7 +3192,7 @@ export interface Pipeline {
3194
3192
  * @param uniform_name The name of a uniform
3195
3193
  * @returns A integer representing the location of the given uniform.
3196
3194
  */
3197
- get_uniform_location(uniform_name: string | null): number
3195
+ get_uniform_location(uniform_name: string): number
3198
3196
  /**
3199
3197
  * Queries what user program has been associated with the given
3200
3198
  * `pipeline` using cogl_pipeline_set_user_program().
@@ -3287,7 +3285,7 @@ export interface Pipeline {
3287
3285
  * @param blend_string A <link linkend="cogl-Blend-Strings">Cogl blend string</link> describing the desired blend function.
3288
3286
  * @returns %TRUE if the blend string was successfully parsed, and the described blending is supported by the underlying driver/hardware. If there was an error, %FALSE is returned and @error is set accordingly (if present).
3289
3287
  */
3290
- set_blend(blend_string: string | null): boolean
3288
+ set_blend(blend_string: string): boolean
3291
3289
  /**
3292
3290
  * When blending is setup to reference a CONSTANT blend factor then
3293
3291
  * blending will depend on the constant set with this function.
@@ -3438,7 +3436,7 @@ export interface Pipeline {
3438
3436
  * @param blend_string A <link linkend="cogl-Blend-Strings">Cogl blend string</link> describing the desired texture combine function.
3439
3437
  * @returns %TRUE if the blend string was successfully parsed, and the described texture combining is supported by the underlying driver and or hardware. On failure, %FALSE is returned and @error is set
3440
3438
  */
3441
- set_layer_combine(layer_index: number, blend_string: string | null): boolean
3439
+ set_layer_combine(layer_index: number, blend_string: string): boolean
3442
3440
  /**
3443
3441
  * When you are using the 'CONSTANT' color source in a layer combine
3444
3442
  * description then you can use this function to define its value.
@@ -3753,13 +3751,13 @@ export interface Texture2D extends Texture {
3753
3751
  * @param key name of the key for that association
3754
3752
  * @returns the data if found, or %NULL if no such data exists.
3755
3753
  */
3756
- get_data(key: string | null): any | null
3754
+ get_data(key: string): any | null
3757
3755
  /**
3758
3756
  * Gets a named field from the objects table of associations (see g_object_set_data()).
3759
3757
  * @param key name of the key for that association
3760
3758
  * @returns the data if found, or %NULL if no such data exists.
3761
3759
  */
3762
- get_data(key: string | null): any | null
3760
+ get_data(key: string): any | null
3763
3761
  /**
3764
3762
  * `texture` a #CoglTexture.
3765
3763
  * Sets all the pixels for a given mipmap `level` by copying the pixel
@@ -3827,7 +3825,7 @@ export interface Texture2D extends Texture {
3827
3825
  * @param key name of the key
3828
3826
  * @param data data to associate with that key
3829
3827
  */
3830
- set_data(key: string | null, data: any | null): void
3828
+ set_data(key: string, data: any | null): void
3831
3829
  /**
3832
3830
  * Each object carries around a table of associations from
3833
3831
  * strings to pointers. This function lets you set an association.
@@ -3842,7 +3840,7 @@ export interface Texture2D extends Texture {
3842
3840
  * @param key name of the key
3843
3841
  * @param data data to associate with that key
3844
3842
  */
3845
- set_data(key: string | null, data: any | null): void
3843
+ set_data(key: string, data: any | null): void
3846
3844
 
3847
3845
  // Class property signals of Cogl-10.Cogl.Texture2D
3848
3846
 
@@ -3929,13 +3927,13 @@ export interface Texture2DSliced extends Texture {
3929
3927
  * @param key name of the key for that association
3930
3928
  * @returns the data if found, or %NULL if no such data exists.
3931
3929
  */
3932
- get_data(key: string | null): any | null
3930
+ get_data(key: string): any | null
3933
3931
  /**
3934
3932
  * Gets a named field from the objects table of associations (see g_object_set_data()).
3935
3933
  * @param key name of the key for that association
3936
3934
  * @returns the data if found, or %NULL if no such data exists.
3937
3935
  */
3938
- get_data(key: string | null): any | null
3936
+ get_data(key: string): any | null
3939
3937
  /**
3940
3938
  * `texture` a #CoglTexture.
3941
3939
  * Sets all the pixels for a given mipmap `level` by copying the pixel
@@ -4003,7 +4001,7 @@ export interface Texture2DSliced extends Texture {
4003
4001
  * @param key name of the key
4004
4002
  * @param data data to associate with that key
4005
4003
  */
4006
- set_data(key: string | null, data: any | null): void
4004
+ set_data(key: string, data: any | null): void
4007
4005
  /**
4008
4006
  * Each object carries around a table of associations from
4009
4007
  * strings to pointers. This function lets you set an association.
@@ -4018,7 +4016,7 @@ export interface Texture2DSliced extends Texture {
4018
4016
  * @param key name of the key
4019
4017
  * @param data data to associate with that key
4020
4018
  */
4021
- set_data(key: string | null, data: any | null): void
4019
+ set_data(key: string, data: any | null): void
4022
4020
 
4023
4021
  // Class property signals of Cogl-10.Cogl.Texture2DSliced
4024
4022
 
@@ -4327,7 +4325,7 @@ export interface DebugObjectTypeInfo {
4327
4325
  * A human readable name for the type.
4328
4326
  * @field
4329
4327
  */
4330
- name: string | null
4328
+ name: string
4331
4329
  /**
4332
4330
  * The number of objects of this type that are
4333
4331
  * currently in use
@@ -4581,7 +4579,7 @@ export interface TraceHead {
4581
4579
  // Own fields of Cogl-10.Cogl.TraceHead
4582
4580
 
4583
4581
  begin_time: number
4584
- name: string | null
4582
+ name: string
4585
4583
  description: string | null
4586
4584
  }
4587
4585
 
package/cogl-10.d.ts CHANGED
@@ -1105,7 +1105,7 @@ function pixel_format_get_n_planes(format: PixelFormat): number
1105
1105
  * @param format a #CoglPixelFormat
1106
1106
  * @returns A string representation of @format.
1107
1107
  */
1108
- function pixel_format_to_string(format: PixelFormat): string | null
1108
+ function pixel_format_to_string(format: PixelFormat): string
1109
1109
  /**
1110
1110
  * Attaches a shader to a program object. A program can have multiple
1111
1111
  * vertex or fragment shaders but only one of them may provide a
@@ -1123,7 +1123,7 @@ function program_attach_shader(program_handle: Handle, shader_handle: Handle): v
1123
1123
  * @param uniform_name the name of a uniform.
1124
1124
  * @returns the offset of a uniform in a specified program.
1125
1125
  */
1126
- function program_get_uniform_location(handle: Handle, uniform_name: string | null): number
1126
+ function program_get_uniform_location(handle: Handle, uniform_name: string): number
1127
1127
  /**
1128
1128
  * Links a program making it ready for use. Note that calling this
1129
1129
  * function is optional. If it is not called the program will
@@ -1177,8 +1177,8 @@ function program_set_uniform_int(program: Handle, uniform_location: number, n_co
1177
1177
  function program_set_uniform_matrix(program: Handle, uniform_location: number, dimensions: number, transpose: boolean, value: number[]): void
1178
1178
  function scanout_error_quark(): GLib.Quark
1179
1179
  function set_tracing_disabled_on_thread(main_context: GLib.MainContext): void
1180
- function set_tracing_enabled_on_thread(main_context: GLib.MainContext, group: string | null, filename: string | null): void
1181
- function set_tracing_enabled_on_thread_with_fd(main_context: GLib.MainContext, group: string | null, fd: number): void
1180
+ function set_tracing_enabled_on_thread(main_context: GLib.MainContext, group: string, filename: string): void
1181
+ function set_tracing_enabled_on_thread_with_fd(main_context: GLib.MainContext, group: string, fd: number): void
1182
1182
  /**
1183
1183
  * Retrieves the type of a shader #CoglHandle
1184
1184
  * @param handle #CoglHandle for a shader.
@@ -1195,7 +1195,7 @@ function shader_get_type(handle: Handle): ShaderType
1195
1195
  * @param shader #CoglHandle for a shader.
1196
1196
  * @param source Shader source.
1197
1197
  */
1198
- function shader_source(shader: Handle, source: string | null): void
1198
+ function shader_source(shader: Handle, source: string): void
1199
1199
  function texture_error_quark(): number
1200
1200
  /**
1201
1201
  * Creates a #CoglTexture from a #CoglBitmap.
@@ -1224,8 +1224,8 @@ function texture_new_from_data(width: number, height: number, flags: TextureFlag
1224
1224
  * @param internal_format the #CoglPixelFormat to use for the GPU storage of the texture. If %COGL_PIXEL_FORMAT_ANY is given then a premultiplied format similar to the format of the source data will be used. The default blending equations of Cogl expect premultiplied color data; the main use of passing a non-premultiplied format here is if you have non-premultiplied source data and are going to adjust the blend mode (see cogl_material_set_blend()) or use the data for something other than straight blending.
1225
1225
  * @returns A newly created #CoglTexture or %NULL on failure
1226
1226
  */
1227
- function texture_new_from_file(filename: string | null, flags: TextureFlags, internal_format: PixelFormat): Texture
1228
- function trace_describe(head: TraceHead, description: string | null): void
1227
+ function texture_new_from_file(filename: string, flags: TextureFlags, internal_format: PixelFormat): Texture
1228
+ function trace_describe(head: TraceHead, description: string): void
1229
1229
  function trace_end(head: TraceHead): void
1230
1230
  /**
1231
1231
  * A callback function to use for cogl_debug_object_foreach_type().
@@ -1341,7 +1341,7 @@ interface Texture extends Object {
1341
1341
  * @param key name of the key for that association
1342
1342
  * @returns the data if found, or %NULL if no such data exists.
1343
1343
  */
1344
- get_data(key: string | null): any | null
1344
+ get_data(key: string): any | null
1345
1345
  /**
1346
1346
  * Queries the GL handles for a GPU side texture through its #CoglTexture.
1347
1347
  *
@@ -1471,7 +1471,7 @@ interface Texture extends Object {
1471
1471
  * @param key name of the key
1472
1472
  * @param data data to associate with that key
1473
1473
  */
1474
- set_data(key: string | null, data: any | null): void
1474
+ set_data(key: string, data: any | null): void
1475
1475
  /**
1476
1476
  * Affects the internal storage format for this texture by specifying
1477
1477
  * whether red, green and blue color components should be stored as
@@ -1579,7 +1579,7 @@ class Texture extends GObject.Object {
1579
1579
  * @param internal_format the #CoglPixelFormat to use for the GPU storage of the texture. If %COGL_PIXEL_FORMAT_ANY is given then a premultiplied format similar to the format of the source data will be used. The default blending equations of Cogl expect premultiplied color data; the main use of passing a non-premultiplied format here is if you have non-premultiplied source data and are going to adjust the blend mode (see cogl_material_set_blend()) or use the data for something other than straight blending.
1580
1580
  * @returns A newly created #CoglTexture or %NULL on failure
1581
1581
  */
1582
- static new_from_file(filename: string | null, flags: TextureFlags, internal_format: PixelFormat): Texture
1582
+ static new_from_file(filename: string, flags: TextureFlags, internal_format: PixelFormat): Texture
1583
1583
  static error_quark(): number
1584
1584
  }
1585
1585
 
@@ -1626,7 +1626,7 @@ class Bitmap extends Object {
1626
1626
  * @param filename the file to load.
1627
1627
  * @returns a #CoglBitmap to the new loaded image data, or %NULL if loading the image failed.
1628
1628
  */
1629
- static new_from_file(filename: string | null): Bitmap
1629
+ static new_from_file(filename: string): Bitmap
1630
1630
  _init(config?: Bitmap.ConstructorProperties): void
1631
1631
  static error_quark(): number
1632
1632
  /**
@@ -1635,7 +1635,7 @@ class Bitmap extends Object {
1635
1635
  * @param filename the file to check
1636
1636
  * @returns %TRUE if the image was successfully parsed
1637
1637
  */
1638
- static get_size_from_file(filename: string | null): [ /* returnType */ boolean, /* width */ number, /* height */ number ]
1638
+ static get_size_from_file(filename: string): [ /* returnType */ boolean, /* width */ number, /* height */ number ]
1639
1639
  }
1640
1640
 
1641
1641
  module Context {
@@ -1786,10 +1786,9 @@ module Framebuffer {
1786
1786
 
1787
1787
  // Own constructor properties of Cogl-10.Cogl.Framebuffer
1788
1788
 
1789
- driver_config?: any | null
1789
+ driverConfig?: any | null
1790
1790
  height?: number | null
1791
1791
  width?: number | null
1792
- driverConfig?: any | null
1793
1792
  }
1794
1793
 
1795
1794
  }
@@ -1798,7 +1797,6 @@ interface Framebuffer {
1798
1797
 
1799
1798
  // Own properties of Cogl-10.Cogl.Framebuffer
1800
1799
 
1801
- readonly driver_config: any
1802
1800
  readonly driverConfig: any
1803
1801
  height: number
1804
1802
  width: number
@@ -3196,7 +3194,7 @@ interface Pipeline {
3196
3194
  * @param uniform_name The name of a uniform
3197
3195
  * @returns A integer representing the location of the given uniform.
3198
3196
  */
3199
- get_uniform_location(uniform_name: string | null): number
3197
+ get_uniform_location(uniform_name: string): number
3200
3198
  /**
3201
3199
  * Queries what user program has been associated with the given
3202
3200
  * `pipeline` using cogl_pipeline_set_user_program().
@@ -3289,7 +3287,7 @@ interface Pipeline {
3289
3287
  * @param blend_string A <link linkend="cogl-Blend-Strings">Cogl blend string</link> describing the desired blend function.
3290
3288
  * @returns %TRUE if the blend string was successfully parsed, and the described blending is supported by the underlying driver/hardware. If there was an error, %FALSE is returned and @error is set accordingly (if present).
3291
3289
  */
3292
- set_blend(blend_string: string | null): boolean
3290
+ set_blend(blend_string: string): boolean
3293
3291
  /**
3294
3292
  * When blending is setup to reference a CONSTANT blend factor then
3295
3293
  * blending will depend on the constant set with this function.
@@ -3440,7 +3438,7 @@ interface Pipeline {
3440
3438
  * @param blend_string A <link linkend="cogl-Blend-Strings">Cogl blend string</link> describing the desired texture combine function.
3441
3439
  * @returns %TRUE if the blend string was successfully parsed, and the described texture combining is supported by the underlying driver and or hardware. On failure, %FALSE is returned and @error is set
3442
3440
  */
3443
- set_layer_combine(layer_index: number, blend_string: string | null): boolean
3441
+ set_layer_combine(layer_index: number, blend_string: string): boolean
3444
3442
  /**
3445
3443
  * When you are using the 'CONSTANT' color source in a layer combine
3446
3444
  * description then you can use this function to define its value.
@@ -3755,13 +3753,13 @@ interface Texture2D extends Texture {
3755
3753
  * @param key name of the key for that association
3756
3754
  * @returns the data if found, or %NULL if no such data exists.
3757
3755
  */
3758
- get_data(key: string | null): any | null
3756
+ get_data(key: string): any | null
3759
3757
  /**
3760
3758
  * Gets a named field from the objects table of associations (see g_object_set_data()).
3761
3759
  * @param key name of the key for that association
3762
3760
  * @returns the data if found, or %NULL if no such data exists.
3763
3761
  */
3764
- get_data(key: string | null): any | null
3762
+ get_data(key: string): any | null
3765
3763
  /**
3766
3764
  * `texture` a #CoglTexture.
3767
3765
  * Sets all the pixels for a given mipmap `level` by copying the pixel
@@ -3829,7 +3827,7 @@ interface Texture2D extends Texture {
3829
3827
  * @param key name of the key
3830
3828
  * @param data data to associate with that key
3831
3829
  */
3832
- set_data(key: string | null, data: any | null): void
3830
+ set_data(key: string, data: any | null): void
3833
3831
  /**
3834
3832
  * Each object carries around a table of associations from
3835
3833
  * strings to pointers. This function lets you set an association.
@@ -3844,7 +3842,7 @@ interface Texture2D extends Texture {
3844
3842
  * @param key name of the key
3845
3843
  * @param data data to associate with that key
3846
3844
  */
3847
- set_data(key: string | null, data: any | null): void
3845
+ set_data(key: string, data: any | null): void
3848
3846
 
3849
3847
  // Class property signals of Cogl-10.Cogl.Texture2D
3850
3848
 
@@ -3931,13 +3929,13 @@ interface Texture2DSliced extends Texture {
3931
3929
  * @param key name of the key for that association
3932
3930
  * @returns the data if found, or %NULL if no such data exists.
3933
3931
  */
3934
- get_data(key: string | null): any | null
3932
+ get_data(key: string): any | null
3935
3933
  /**
3936
3934
  * Gets a named field from the objects table of associations (see g_object_set_data()).
3937
3935
  * @param key name of the key for that association
3938
3936
  * @returns the data if found, or %NULL if no such data exists.
3939
3937
  */
3940
- get_data(key: string | null): any | null
3938
+ get_data(key: string): any | null
3941
3939
  /**
3942
3940
  * `texture` a #CoglTexture.
3943
3941
  * Sets all the pixels for a given mipmap `level` by copying the pixel
@@ -4005,7 +4003,7 @@ interface Texture2DSliced extends Texture {
4005
4003
  * @param key name of the key
4006
4004
  * @param data data to associate with that key
4007
4005
  */
4008
- set_data(key: string | null, data: any | null): void
4006
+ set_data(key: string, data: any | null): void
4009
4007
  /**
4010
4008
  * Each object carries around a table of associations from
4011
4009
  * strings to pointers. This function lets you set an association.
@@ -4020,7 +4018,7 @@ interface Texture2DSliced extends Texture {
4020
4018
  * @param key name of the key
4021
4019
  * @param data data to associate with that key
4022
4020
  */
4023
- set_data(key: string | null, data: any | null): void
4021
+ set_data(key: string, data: any | null): void
4024
4022
 
4025
4023
  // Class property signals of Cogl-10.Cogl.Texture2DSliced
4026
4024
 
@@ -4329,7 +4327,7 @@ interface DebugObjectTypeInfo {
4329
4327
  * A human readable name for the type.
4330
4328
  * @field
4331
4329
  */
4332
- name: string | null
4330
+ name: string
4333
4331
  /**
4334
4332
  * The number of objects of this type that are
4335
4333
  * currently in use
@@ -4583,7 +4581,7 @@ interface TraceHead {
4583
4581
  // Own fields of Cogl-10.Cogl.TraceHead
4584
4582
 
4585
4583
  begin_time: number
4586
- name: string | null
4584
+ name: string
4587
4585
  description: string | null
4588
4586
  }
4589
4587
 
package/package.json CHANGED
@@ -1,13 +1,19 @@
1
1
  {
2
2
  "name": "@girs/cogl-10",
3
- "version": "10.0.0-3.2.6",
3
+ "version": "10.0.0-3.2.8",
4
4
  "description": "GJS TypeScript type definitions for Cogl-10, generated from library version 10.0.0",
5
5
  "type": "module",
6
6
  "module": "cogl-10.js",
7
7
  "main": "cogl-10.js",
8
8
  "exports": {
9
- "./ambient": "./cogl-10-ambient.d.ts",
10
- "./import": "./cogl-10-import.d.ts",
9
+ "./ambient": {
10
+ "types": "./cogl-10-ambient.d.ts",
11
+ "default": "./cogl-10-ambient.js"
12
+ },
13
+ "./import": {
14
+ "types": "./cogl-10-import.d.ts",
15
+ "default": "./cogl-10-import.js"
16
+ },
11
17
  ".": {
12
18
  "import": {
13
19
  "types": "./cogl-10.d.ts",
@@ -25,12 +31,12 @@
25
31
  "test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit cogl-10.d.cts"
26
32
  },
27
33
  "dependencies": {
28
- "@girs/cairo-1.0": "^1.0.0-3.2.6",
29
- "@girs/gjs": "^3.2.6",
30
- "@girs/gl-1.0": "^1.0.0-3.2.6",
31
- "@girs/glib-2.0": "^2.78.0-3.2.6",
32
- "@girs/gobject-2.0": "^2.78.0-3.2.6",
33
- "@girs/graphene-1.0": "^1.0.0-3.2.6"
34
+ "@girs/cairo-1.0": "^1.0.0-3.2.8",
35
+ "@girs/gjs": "^3.2.8",
36
+ "@girs/gl-1.0": "^1.0.0-3.2.8",
37
+ "@girs/glib-2.0": "^2.77.0-3.2.8",
38
+ "@girs/gobject-2.0": "^2.77.0-3.2.8",
39
+ "@girs/graphene-1.0": "^1.0.0-3.2.8"
34
40
  },
35
41
  "devDependencies": {
36
42
  "typescript": "*"
@@ -47,7 +53,7 @@
47
53
  "license": "MIT",
48
54
  "repository": {
49
55
  "type": "git",
50
- "url": "git+https://github.com/gjsify/types.git"
56
+ "url": "git+https://github.com/gjsify/ts-for-gir.git"
51
57
  },
52
58
  "bugs": {
53
59
  "url": "https://github.com/gjsify/ts-for-gir/issues"