@girs/gcalc-2 2.0.0-3.2.5 → 2.0.0-3.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
  ![downloads/week](https://img.shields.io/npm/dw/@girs/gcalc-2)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for GCalc-2, generated from library version 2.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.5.
8
+ GJS TypeScript type definitions for GCalc-2, generated from library version 2.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.7.
9
9
 
10
10
 
11
11
  ## Install
package/gcalc-2.d.cts CHANGED
@@ -531,13 +531,13 @@ export interface MathEquationManager extends GObject.Object {
531
531
 
532
532
  // Owm methods of GCalc-2.GCalc.MathEquationManager
533
533
 
534
- find_variable(name: string | null): MathVariable
534
+ find_variable(name: string): MathVariable
535
535
  get_equations(): ExpressionContainer
536
536
  get_functions(): ExpressionContainer
537
537
 
538
538
  // Own virtual methods of GCalc-2.GCalc.MathEquationManager
539
539
 
540
- vfunc_find_variable(name: string | null): MathVariable
540
+ vfunc_find_variable(name: string): MathVariable
541
541
  vfunc_get_equations(): ExpressionContainer
542
542
  vfunc_get_functions(): ExpressionContainer
543
543
 
@@ -585,11 +585,11 @@ export interface MathErrorResult extends GObject.Object, MathResult {
585
585
 
586
586
  // Owm methods of GCalc-2.GCalc.MathErrorResult
587
587
 
588
- get_message(): string | null
588
+ get_message(): string
589
589
 
590
590
  // Own virtual methods of GCalc-2.GCalc.MathErrorResult
591
591
 
592
- vfunc_get_message(): string | null
592
+ vfunc_get_message(): string
593
593
 
594
594
  // Class property signals of GCalc-2.GCalc.MathErrorResult
595
595
 
@@ -692,6 +692,7 @@ export module MathFunction {
692
692
  name?: string | null
693
693
  n_params?: number | null
694
694
  closed?: boolean | null
695
+ nParams?: number | null
695
696
  }
696
697
 
697
698
  }
@@ -701,8 +702,10 @@ export interface MathFunction extends GObject.Object, MathExpression {
701
702
  // Own properties of GCalc-2.GCalc.MathFunction
702
703
 
703
704
  readonly param_types: ExpressionContainer
705
+ readonly paramTypes: ExpressionContainer
704
706
  name: string | null
705
707
  n_params: number
708
+ nParams: number
706
709
  closed: boolean
707
710
 
708
711
  // Owm methods of GCalc-2.GCalc.MathFunction
@@ -710,8 +713,8 @@ export interface MathFunction extends GObject.Object, MathExpression {
710
713
  evaluate(): MathExpression
711
714
  verify_params(): boolean
712
715
  get_param_types(): ExpressionContainer
713
- get_name(): string | null
714
- set_name(value: string | null): void
716
+ get_name(): string
717
+ set_name(value: string): void
715
718
  get_n_params(): number
716
719
  set_n_params(value: number): void
717
720
  get_closed(): boolean
@@ -722,8 +725,8 @@ export interface MathFunction extends GObject.Object, MathExpression {
722
725
  vfunc_evaluate(): MathExpression
723
726
  vfunc_verify_params(): boolean
724
727
  vfunc_get_param_types(): ExpressionContainer
725
- vfunc_get_name(): string | null
726
- vfunc_set_name(value: string | null): void
728
+ vfunc_get_name(): string
729
+ vfunc_set_name(value: string): void
727
730
  vfunc_get_n_params(): number
728
731
  vfunc_set_n_params(value: number): void
729
732
  vfunc_get_closed(): boolean
@@ -1271,8 +1274,8 @@ export interface MathVariable extends GObject.Object, MathExpression {
1271
1274
  // Owm methods of GCalc-2.GCalc.MathVariable
1272
1275
 
1273
1276
  evaluate(): MathExpression
1274
- get_name(): string | null
1275
- set_name(value: string | null): void
1277
+ get_name(): string
1278
+ set_name(value: string): void
1276
1279
  get_value(): MathConstant
1277
1280
  set_value(value: MathConstant): void
1278
1281
  get_bind(): MathVariable
@@ -1282,8 +1285,8 @@ export interface MathVariable extends GObject.Object, MathExpression {
1282
1285
  // Own virtual methods of GCalc-2.GCalc.MathVariable
1283
1286
 
1284
1287
  vfunc_evaluate(): MathExpression
1285
- vfunc_get_name(): string | null
1286
- vfunc_set_name(value: string | null): void
1288
+ vfunc_get_name(): string
1289
+ vfunc_set_name(value: string): void
1287
1290
  vfunc_get_value(): MathConstant
1288
1291
  vfunc_set_value(value: MathConstant): void
1289
1292
  vfunc_get_bind(): MathVariable
@@ -1641,8 +1644,8 @@ export class ErrorResult extends GObject.Object {
1641
1644
  // Constructors of GCalc-2.GCalc.ErrorResult
1642
1645
 
1643
1646
  constructor(config?: ErrorResult.ConstructorProperties)
1644
- constructor(msg: string | null)
1645
- static new(msg: string | null): ErrorResult
1647
+ constructor(msg: string)
1648
+ static new(msg: string): ErrorResult
1646
1649
  _init(config?: ErrorResult.ConstructorProperties): void
1647
1650
  }
1648
1651
 
@@ -1756,12 +1759,13 @@ export interface ExpressionContainer extends Gio.ListModel {
1756
1759
  // Conflicting properties
1757
1760
 
1758
1761
  read_only_view: any
1762
+ readOnlyView: any
1759
1763
 
1760
1764
  // Owm methods of GCalc-2.GCalc.ExpressionContainer
1761
1765
 
1762
1766
  get_object(position: number): GObject.Object | null
1763
1767
  find(exp: MathExpression): MathExpression | null
1764
- find_named(name: string | null): MathExpression | null
1768
+ find_named(name: string): MathExpression | null
1765
1769
  get_parent(): MathExpression
1766
1770
  set_parent(value: MathExpression): void
1767
1771
 
@@ -1904,7 +1908,7 @@ export interface ExpressionHashMap {
1904
1908
  // Overloads of remove
1905
1909
 
1906
1910
  remove(key: any): [ /* returnType */ boolean, /* value */ any ]
1907
- find_named(name: string | null): MathExpression | null
1911
+ find_named(name: string): MathExpression | null
1908
1912
  get_parent(): MathExpression
1909
1913
  set_parent(value: MathExpression): void
1910
1914
 
@@ -2029,7 +2033,7 @@ export class Function extends Expression {
2029
2033
  // Constructors of GCalc-2.GCalc.Function
2030
2034
 
2031
2035
  constructor(config?: Function.ConstructorProperties)
2032
- static with_name(name: string | null, nparams: number): Function
2036
+ static with_name(name: string, nparams: number): Function
2033
2037
  constructor()
2034
2038
  static new(): Function
2035
2039
 
@@ -2833,8 +2837,8 @@ export class Parameter extends Variable {
2833
2837
  // Constructors of GCalc-2.GCalc.Parameter
2834
2838
 
2835
2839
  constructor(config?: Parameter.ConstructorProperties)
2836
- constructor(name: string | null)
2837
- static new(name: string | null): Parameter
2840
+ constructor(name: string)
2841
+ static new(name: string): Parameter
2838
2842
 
2839
2843
  // Overloads of new
2840
2844
 
@@ -2855,7 +2859,7 @@ export interface Parser {
2855
2859
 
2856
2860
  // Owm methods of GCalc-2.GCalc.Parser
2857
2861
 
2858
- parse(str: string | null, eqman: MathEquationManager): void
2862
+ parse(str: string, eqman: MathEquationManager): void
2859
2863
  read_token(): ParserTokenType
2860
2864
  token_to_string(): string | null
2861
2865
 
@@ -3060,6 +3064,7 @@ export module Solver {
3060
3064
  // Own constructor properties of GCalc-2.GCalc.Solver
3061
3065
 
3062
3066
  equation_manager?: MathEquationManager | null
3067
+ equationManager?: MathEquationManager | null
3063
3068
  }
3064
3069
 
3065
3070
  }
@@ -3069,11 +3074,12 @@ export interface Solver {
3069
3074
  // Own properties of GCalc-2.GCalc.Solver
3070
3075
 
3071
3076
  equation_manager: MathEquationManager
3077
+ equationManager: MathEquationManager
3072
3078
 
3073
3079
  // Owm methods of GCalc-2.GCalc.Solver
3074
3080
 
3075
- add_expression(exp: string | null): void
3076
- solve(str: string | null): MathResult
3081
+ add_expression(exp: string): void
3082
+ solve(str: string): MathResult
3077
3083
  get_equation_manager(): MathEquationManager
3078
3084
  set_equation_manager(value: MathEquationManager): void
3079
3085
 
@@ -4166,7 +4172,7 @@ export interface MathEquationManagerIface {
4166
4172
 
4167
4173
  // Own fields of GCalc-2.GCalc.MathEquationManagerIface
4168
4174
 
4169
- find_variable: (self: MathEquationManager, name: string | null) => MathVariable
4175
+ find_variable: (self: MathEquationManager, name: string) => MathVariable
4170
4176
  get_equations: (self: MathEquationManager) => ExpressionContainer
4171
4177
  get_functions: (self: MathEquationManager) => ExpressionContainer
4172
4178
  }
@@ -4182,7 +4188,7 @@ export interface MathErrorResultIface {
4182
4188
 
4183
4189
  // Own fields of GCalc-2.GCalc.MathErrorResultIface
4184
4190
 
4185
- get_message: (self: MathErrorResult) => string | null
4191
+ get_message: (self: MathErrorResult) => string
4186
4192
  }
4187
4193
 
4188
4194
  export abstract class MathErrorResultIface {
@@ -4217,8 +4223,8 @@ export interface MathFunctionIface {
4217
4223
  evaluate: (self: MathFunction) => MathExpression
4218
4224
  verify_params: (self: MathFunction) => boolean
4219
4225
  get_param_types: (self: MathFunction) => ExpressionContainer
4220
- get_name: (self: MathFunction) => string | null
4221
- set_name: (self: MathFunction, value: string | null) => void
4226
+ get_name: (self: MathFunction) => string
4227
+ set_name: (self: MathFunction, value: string) => void
4222
4228
  get_n_params: (self: MathFunction) => number
4223
4229
  set_n_params: (self: MathFunction, value: number) => void
4224
4230
  get_closed: (self: MathFunction) => boolean
@@ -4364,8 +4370,8 @@ export interface MathVariableIface {
4364
4370
  // Own fields of GCalc-2.GCalc.MathVariableIface
4365
4371
 
4366
4372
  evaluate: (self: MathVariable) => MathExpression
4367
- get_name: (self: MathVariable) => string | null
4368
- set_name: (self: MathVariable, value: string | null) => void
4373
+ get_name: (self: MathVariable) => string
4374
+ set_name: (self: MathVariable, value: string) => void
4369
4375
  get_value: (self: MathVariable) => MathConstant
4370
4376
  set_value: (self: MathVariable, value: MathConstant) => void
4371
4377
  get_bind: (self: MathVariable) => MathVariable
package/gcalc-2.d.ts CHANGED
@@ -533,13 +533,13 @@ interface MathEquationManager extends GObject.Object {
533
533
 
534
534
  // Owm methods of GCalc-2.GCalc.MathEquationManager
535
535
 
536
- find_variable(name: string | null): MathVariable
536
+ find_variable(name: string): MathVariable
537
537
  get_equations(): ExpressionContainer
538
538
  get_functions(): ExpressionContainer
539
539
 
540
540
  // Own virtual methods of GCalc-2.GCalc.MathEquationManager
541
541
 
542
- vfunc_find_variable(name: string | null): MathVariable
542
+ vfunc_find_variable(name: string): MathVariable
543
543
  vfunc_get_equations(): ExpressionContainer
544
544
  vfunc_get_functions(): ExpressionContainer
545
545
 
@@ -587,11 +587,11 @@ interface MathErrorResult extends GObject.Object, MathResult {
587
587
 
588
588
  // Owm methods of GCalc-2.GCalc.MathErrorResult
589
589
 
590
- get_message(): string | null
590
+ get_message(): string
591
591
 
592
592
  // Own virtual methods of GCalc-2.GCalc.MathErrorResult
593
593
 
594
- vfunc_get_message(): string | null
594
+ vfunc_get_message(): string
595
595
 
596
596
  // Class property signals of GCalc-2.GCalc.MathErrorResult
597
597
 
@@ -694,6 +694,7 @@ module MathFunction {
694
694
  name?: string | null
695
695
  n_params?: number | null
696
696
  closed?: boolean | null
697
+ nParams?: number | null
697
698
  }
698
699
 
699
700
  }
@@ -703,8 +704,10 @@ interface MathFunction extends GObject.Object, MathExpression {
703
704
  // Own properties of GCalc-2.GCalc.MathFunction
704
705
 
705
706
  readonly param_types: ExpressionContainer
707
+ readonly paramTypes: ExpressionContainer
706
708
  name: string | null
707
709
  n_params: number
710
+ nParams: number
708
711
  closed: boolean
709
712
 
710
713
  // Owm methods of GCalc-2.GCalc.MathFunction
@@ -712,8 +715,8 @@ interface MathFunction extends GObject.Object, MathExpression {
712
715
  evaluate(): MathExpression
713
716
  verify_params(): boolean
714
717
  get_param_types(): ExpressionContainer
715
- get_name(): string | null
716
- set_name(value: string | null): void
718
+ get_name(): string
719
+ set_name(value: string): void
717
720
  get_n_params(): number
718
721
  set_n_params(value: number): void
719
722
  get_closed(): boolean
@@ -724,8 +727,8 @@ interface MathFunction extends GObject.Object, MathExpression {
724
727
  vfunc_evaluate(): MathExpression
725
728
  vfunc_verify_params(): boolean
726
729
  vfunc_get_param_types(): ExpressionContainer
727
- vfunc_get_name(): string | null
728
- vfunc_set_name(value: string | null): void
730
+ vfunc_get_name(): string
731
+ vfunc_set_name(value: string): void
729
732
  vfunc_get_n_params(): number
730
733
  vfunc_set_n_params(value: number): void
731
734
  vfunc_get_closed(): boolean
@@ -1273,8 +1276,8 @@ interface MathVariable extends GObject.Object, MathExpression {
1273
1276
  // Owm methods of GCalc-2.GCalc.MathVariable
1274
1277
 
1275
1278
  evaluate(): MathExpression
1276
- get_name(): string | null
1277
- set_name(value: string | null): void
1279
+ get_name(): string
1280
+ set_name(value: string): void
1278
1281
  get_value(): MathConstant
1279
1282
  set_value(value: MathConstant): void
1280
1283
  get_bind(): MathVariable
@@ -1284,8 +1287,8 @@ interface MathVariable extends GObject.Object, MathExpression {
1284
1287
  // Own virtual methods of GCalc-2.GCalc.MathVariable
1285
1288
 
1286
1289
  vfunc_evaluate(): MathExpression
1287
- vfunc_get_name(): string | null
1288
- vfunc_set_name(value: string | null): void
1290
+ vfunc_get_name(): string
1291
+ vfunc_set_name(value: string): void
1289
1292
  vfunc_get_value(): MathConstant
1290
1293
  vfunc_set_value(value: MathConstant): void
1291
1294
  vfunc_get_bind(): MathVariable
@@ -1643,8 +1646,8 @@ class ErrorResult extends GObject.Object {
1643
1646
  // Constructors of GCalc-2.GCalc.ErrorResult
1644
1647
 
1645
1648
  constructor(config?: ErrorResult.ConstructorProperties)
1646
- constructor(msg: string | null)
1647
- static new(msg: string | null): ErrorResult
1649
+ constructor(msg: string)
1650
+ static new(msg: string): ErrorResult
1648
1651
  _init(config?: ErrorResult.ConstructorProperties): void
1649
1652
  }
1650
1653
 
@@ -1758,12 +1761,13 @@ interface ExpressionContainer extends Gio.ListModel {
1758
1761
  // Conflicting properties
1759
1762
 
1760
1763
  read_only_view: any
1764
+ readOnlyView: any
1761
1765
 
1762
1766
  // Owm methods of GCalc-2.GCalc.ExpressionContainer
1763
1767
 
1764
1768
  get_object(position: number): GObject.Object | null
1765
1769
  find(exp: MathExpression): MathExpression | null
1766
- find_named(name: string | null): MathExpression | null
1770
+ find_named(name: string): MathExpression | null
1767
1771
  get_parent(): MathExpression
1768
1772
  set_parent(value: MathExpression): void
1769
1773
 
@@ -1906,7 +1910,7 @@ interface ExpressionHashMap {
1906
1910
  // Overloads of remove
1907
1911
 
1908
1912
  remove(key: any): [ /* returnType */ boolean, /* value */ any ]
1909
- find_named(name: string | null): MathExpression | null
1913
+ find_named(name: string): MathExpression | null
1910
1914
  get_parent(): MathExpression
1911
1915
  set_parent(value: MathExpression): void
1912
1916
 
@@ -2031,7 +2035,7 @@ class Function extends Expression {
2031
2035
  // Constructors of GCalc-2.GCalc.Function
2032
2036
 
2033
2037
  constructor(config?: Function.ConstructorProperties)
2034
- static with_name(name: string | null, nparams: number): Function
2038
+ static with_name(name: string, nparams: number): Function
2035
2039
  constructor()
2036
2040
  static new(): Function
2037
2041
 
@@ -2835,8 +2839,8 @@ class Parameter extends Variable {
2835
2839
  // Constructors of GCalc-2.GCalc.Parameter
2836
2840
 
2837
2841
  constructor(config?: Parameter.ConstructorProperties)
2838
- constructor(name: string | null)
2839
- static new(name: string | null): Parameter
2842
+ constructor(name: string)
2843
+ static new(name: string): Parameter
2840
2844
 
2841
2845
  // Overloads of new
2842
2846
 
@@ -2857,7 +2861,7 @@ interface Parser {
2857
2861
 
2858
2862
  // Owm methods of GCalc-2.GCalc.Parser
2859
2863
 
2860
- parse(str: string | null, eqman: MathEquationManager): void
2864
+ parse(str: string, eqman: MathEquationManager): void
2861
2865
  read_token(): ParserTokenType
2862
2866
  token_to_string(): string | null
2863
2867
 
@@ -3062,6 +3066,7 @@ module Solver {
3062
3066
  // Own constructor properties of GCalc-2.GCalc.Solver
3063
3067
 
3064
3068
  equation_manager?: MathEquationManager | null
3069
+ equationManager?: MathEquationManager | null
3065
3070
  }
3066
3071
 
3067
3072
  }
@@ -3071,11 +3076,12 @@ interface Solver {
3071
3076
  // Own properties of GCalc-2.GCalc.Solver
3072
3077
 
3073
3078
  equation_manager: MathEquationManager
3079
+ equationManager: MathEquationManager
3074
3080
 
3075
3081
  // Owm methods of GCalc-2.GCalc.Solver
3076
3082
 
3077
- add_expression(exp: string | null): void
3078
- solve(str: string | null): MathResult
3083
+ add_expression(exp: string): void
3084
+ solve(str: string): MathResult
3079
3085
  get_equation_manager(): MathEquationManager
3080
3086
  set_equation_manager(value: MathEquationManager): void
3081
3087
 
@@ -4168,7 +4174,7 @@ interface MathEquationManagerIface {
4168
4174
 
4169
4175
  // Own fields of GCalc-2.GCalc.MathEquationManagerIface
4170
4176
 
4171
- find_variable: (self: MathEquationManager, name: string | null) => MathVariable
4177
+ find_variable: (self: MathEquationManager, name: string) => MathVariable
4172
4178
  get_equations: (self: MathEquationManager) => ExpressionContainer
4173
4179
  get_functions: (self: MathEquationManager) => ExpressionContainer
4174
4180
  }
@@ -4184,7 +4190,7 @@ interface MathErrorResultIface {
4184
4190
 
4185
4191
  // Own fields of GCalc-2.GCalc.MathErrorResultIface
4186
4192
 
4187
- get_message: (self: MathErrorResult) => string | null
4193
+ get_message: (self: MathErrorResult) => string
4188
4194
  }
4189
4195
 
4190
4196
  abstract class MathErrorResultIface {
@@ -4219,8 +4225,8 @@ interface MathFunctionIface {
4219
4225
  evaluate: (self: MathFunction) => MathExpression
4220
4226
  verify_params: (self: MathFunction) => boolean
4221
4227
  get_param_types: (self: MathFunction) => ExpressionContainer
4222
- get_name: (self: MathFunction) => string | null
4223
- set_name: (self: MathFunction, value: string | null) => void
4228
+ get_name: (self: MathFunction) => string
4229
+ set_name: (self: MathFunction, value: string) => void
4224
4230
  get_n_params: (self: MathFunction) => number
4225
4231
  set_n_params: (self: MathFunction, value: number) => void
4226
4232
  get_closed: (self: MathFunction) => boolean
@@ -4366,8 +4372,8 @@ interface MathVariableIface {
4366
4372
  // Own fields of GCalc-2.GCalc.MathVariableIface
4367
4373
 
4368
4374
  evaluate: (self: MathVariable) => MathExpression
4369
- get_name: (self: MathVariable) => string | null
4370
- set_name: (self: MathVariable, value: string | null) => void
4375
+ get_name: (self: MathVariable) => string
4376
+ set_name: (self: MathVariable, value: string) => void
4371
4377
  get_value: (self: MathVariable) => MathConstant
4372
4378
  set_value: (self: MathVariable, value: MathConstant) => void
4373
4379
  get_bind: (self: MathVariable) => MathVariable
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/gcalc-2",
3
- "version": "2.0.0-3.2.5",
3
+ "version": "2.0.0-3.2.7",
4
4
  "description": "GJS TypeScript type definitions for GCalc-2, generated from library version 2.0.0",
5
5
  "type": "module",
6
6
  "module": "gcalc-2.js",
@@ -25,11 +25,11 @@
25
25
  "test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit gcalc-2.d.cts"
26
26
  },
27
27
  "dependencies": {
28
- "@girs/gee-0.8": "^0.8.0-3.2.5",
29
- "@girs/gio-2.0": "^2.78.0-3.2.5",
30
- "@girs/gjs": "^3.2.5",
31
- "@girs/glib-2.0": "^2.78.0-3.2.5",
32
- "@girs/gobject-2.0": "^2.78.0-3.2.5"
28
+ "@girs/gee-0.8": "^0.8.0-3.2.7",
29
+ "@girs/gio-2.0": "^2.78.0-3.2.7",
30
+ "@girs/gjs": "^3.2.7",
31
+ "@girs/glib-2.0": "^2.78.0-3.2.7",
32
+ "@girs/gobject-2.0": "^2.78.0-3.2.7"
33
33
  },
34
34
  "devDependencies": {
35
35
  "typescript": "*"