@girs/gcalc-2 2.0.0-3.2.6 → 2.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/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.6.
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.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/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
 
@@ -690,9 +690,8 @@ export module MathFunction {
690
690
  // Own constructor properties of GCalc-2.GCalc.MathFunction
691
691
 
692
692
  name?: string | null
693
- n_params?: number | null
694
- closed?: boolean | null
695
693
  nParams?: number | null
694
+ closed?: boolean | null
696
695
  }
697
696
 
698
697
  }
@@ -701,10 +700,8 @@ export interface MathFunction extends GObject.Object, MathExpression {
701
700
 
702
701
  // Own properties of GCalc-2.GCalc.MathFunction
703
702
 
704
- readonly param_types: ExpressionContainer
705
703
  readonly paramTypes: ExpressionContainer
706
704
  name: string | null
707
- n_params: number
708
705
  nParams: number
709
706
  closed: boolean
710
707
 
@@ -713,8 +710,8 @@ export interface MathFunction extends GObject.Object, MathExpression {
713
710
  evaluate(): MathExpression
714
711
  verify_params(): boolean
715
712
  get_param_types(): ExpressionContainer
716
- get_name(): string | null
717
- set_name(value: string | null): void
713
+ get_name(): string
714
+ set_name(value: string): void
718
715
  get_n_params(): number
719
716
  set_n_params(value: number): void
720
717
  get_closed(): boolean
@@ -725,8 +722,8 @@ export interface MathFunction extends GObject.Object, MathExpression {
725
722
  vfunc_evaluate(): MathExpression
726
723
  vfunc_verify_params(): boolean
727
724
  vfunc_get_param_types(): ExpressionContainer
728
- vfunc_get_name(): string | null
729
- vfunc_set_name(value: string | null): void
725
+ vfunc_get_name(): string
726
+ vfunc_set_name(value: string): void
730
727
  vfunc_get_n_params(): number
731
728
  vfunc_set_n_params(value: number): void
732
729
  vfunc_get_closed(): boolean
@@ -1274,8 +1271,8 @@ export interface MathVariable extends GObject.Object, MathExpression {
1274
1271
  // Owm methods of GCalc-2.GCalc.MathVariable
1275
1272
 
1276
1273
  evaluate(): MathExpression
1277
- get_name(): string | null
1278
- set_name(value: string | null): void
1274
+ get_name(): string
1275
+ set_name(value: string): void
1279
1276
  get_value(): MathConstant
1280
1277
  set_value(value: MathConstant): void
1281
1278
  get_bind(): MathVariable
@@ -1285,8 +1282,8 @@ export interface MathVariable extends GObject.Object, MathExpression {
1285
1282
  // Own virtual methods of GCalc-2.GCalc.MathVariable
1286
1283
 
1287
1284
  vfunc_evaluate(): MathExpression
1288
- vfunc_get_name(): string | null
1289
- vfunc_set_name(value: string | null): void
1285
+ vfunc_get_name(): string
1286
+ vfunc_set_name(value: string): void
1290
1287
  vfunc_get_value(): MathConstant
1291
1288
  vfunc_set_value(value: MathConstant): void
1292
1289
  vfunc_get_bind(): MathVariable
@@ -1644,8 +1641,8 @@ export class ErrorResult extends GObject.Object {
1644
1641
  // Constructors of GCalc-2.GCalc.ErrorResult
1645
1642
 
1646
1643
  constructor(config?: ErrorResult.ConstructorProperties)
1647
- constructor(msg: string | null)
1648
- static new(msg: string | null): ErrorResult
1644
+ constructor(msg: string)
1645
+ static new(msg: string): ErrorResult
1649
1646
  _init(config?: ErrorResult.ConstructorProperties): void
1650
1647
  }
1651
1648
 
@@ -1758,14 +1755,13 @@ export interface ExpressionContainer extends Gio.ListModel {
1758
1755
 
1759
1756
  // Conflicting properties
1760
1757
 
1761
- read_only_view: any
1762
1758
  readOnlyView: any
1763
1759
 
1764
1760
  // Owm methods of GCalc-2.GCalc.ExpressionContainer
1765
1761
 
1766
1762
  get_object(position: number): GObject.Object | null
1767
1763
  find(exp: MathExpression): MathExpression | null
1768
- find_named(name: string | null): MathExpression | null
1764
+ find_named(name: string): MathExpression | null
1769
1765
  get_parent(): MathExpression
1770
1766
  set_parent(value: MathExpression): void
1771
1767
 
@@ -1908,7 +1904,7 @@ export interface ExpressionHashMap {
1908
1904
  // Overloads of remove
1909
1905
 
1910
1906
  remove(key: any): [ /* returnType */ boolean, /* value */ any ]
1911
- find_named(name: string | null): MathExpression | null
1907
+ find_named(name: string): MathExpression | null
1912
1908
  get_parent(): MathExpression
1913
1909
  set_parent(value: MathExpression): void
1914
1910
 
@@ -2033,7 +2029,7 @@ export class Function extends Expression {
2033
2029
  // Constructors of GCalc-2.GCalc.Function
2034
2030
 
2035
2031
  constructor(config?: Function.ConstructorProperties)
2036
- static with_name(name: string | null, nparams: number): Function
2032
+ static with_name(name: string, nparams: number): Function
2037
2033
  constructor()
2038
2034
  static new(): Function
2039
2035
 
@@ -2837,8 +2833,8 @@ export class Parameter extends Variable {
2837
2833
  // Constructors of GCalc-2.GCalc.Parameter
2838
2834
 
2839
2835
  constructor(config?: Parameter.ConstructorProperties)
2840
- constructor(name: string | null)
2841
- static new(name: string | null): Parameter
2836
+ constructor(name: string)
2837
+ static new(name: string): Parameter
2842
2838
 
2843
2839
  // Overloads of new
2844
2840
 
@@ -2859,7 +2855,7 @@ export interface Parser {
2859
2855
 
2860
2856
  // Owm methods of GCalc-2.GCalc.Parser
2861
2857
 
2862
- parse(str: string | null, eqman: MathEquationManager): void
2858
+ parse(str: string, eqman: MathEquationManager): void
2863
2859
  read_token(): ParserTokenType
2864
2860
  token_to_string(): string | null
2865
2861
 
@@ -3063,7 +3059,6 @@ export module Solver {
3063
3059
 
3064
3060
  // Own constructor properties of GCalc-2.GCalc.Solver
3065
3061
 
3066
- equation_manager?: MathEquationManager | null
3067
3062
  equationManager?: MathEquationManager | null
3068
3063
  }
3069
3064
 
@@ -3073,13 +3068,12 @@ export interface Solver {
3073
3068
 
3074
3069
  // Own properties of GCalc-2.GCalc.Solver
3075
3070
 
3076
- equation_manager: MathEquationManager
3077
3071
  equationManager: MathEquationManager
3078
3072
 
3079
3073
  // Owm methods of GCalc-2.GCalc.Solver
3080
3074
 
3081
- add_expression(exp: string | null): void
3082
- solve(str: string | null): MathResult
3075
+ add_expression(exp: string): void
3076
+ solve(str: string): MathResult
3083
3077
  get_equation_manager(): MathEquationManager
3084
3078
  set_equation_manager(value: MathEquationManager): void
3085
3079
 
@@ -4172,7 +4166,7 @@ export interface MathEquationManagerIface {
4172
4166
 
4173
4167
  // Own fields of GCalc-2.GCalc.MathEquationManagerIface
4174
4168
 
4175
- find_variable: (self: MathEquationManager, name: string | null) => MathVariable
4169
+ find_variable: (self: MathEquationManager, name: string) => MathVariable
4176
4170
  get_equations: (self: MathEquationManager) => ExpressionContainer
4177
4171
  get_functions: (self: MathEquationManager) => ExpressionContainer
4178
4172
  }
@@ -4188,7 +4182,7 @@ export interface MathErrorResultIface {
4188
4182
 
4189
4183
  // Own fields of GCalc-2.GCalc.MathErrorResultIface
4190
4184
 
4191
- get_message: (self: MathErrorResult) => string | null
4185
+ get_message: (self: MathErrorResult) => string
4192
4186
  }
4193
4187
 
4194
4188
  export abstract class MathErrorResultIface {
@@ -4223,8 +4217,8 @@ export interface MathFunctionIface {
4223
4217
  evaluate: (self: MathFunction) => MathExpression
4224
4218
  verify_params: (self: MathFunction) => boolean
4225
4219
  get_param_types: (self: MathFunction) => ExpressionContainer
4226
- get_name: (self: MathFunction) => string | null
4227
- set_name: (self: MathFunction, value: string | null) => void
4220
+ get_name: (self: MathFunction) => string
4221
+ set_name: (self: MathFunction, value: string) => void
4228
4222
  get_n_params: (self: MathFunction) => number
4229
4223
  set_n_params: (self: MathFunction, value: number) => void
4230
4224
  get_closed: (self: MathFunction) => boolean
@@ -4370,8 +4364,8 @@ export interface MathVariableIface {
4370
4364
  // Own fields of GCalc-2.GCalc.MathVariableIface
4371
4365
 
4372
4366
  evaluate: (self: MathVariable) => MathExpression
4373
- get_name: (self: MathVariable) => string | null
4374
- set_name: (self: MathVariable, value: string | null) => void
4367
+ get_name: (self: MathVariable) => string
4368
+ set_name: (self: MathVariable, value: string) => void
4375
4369
  get_value: (self: MathVariable) => MathConstant
4376
4370
  set_value: (self: MathVariable, value: MathConstant) => void
4377
4371
  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
 
@@ -692,9 +692,8 @@ module MathFunction {
692
692
  // Own constructor properties of GCalc-2.GCalc.MathFunction
693
693
 
694
694
  name?: string | null
695
- n_params?: number | null
696
- closed?: boolean | null
697
695
  nParams?: number | null
696
+ closed?: boolean | null
698
697
  }
699
698
 
700
699
  }
@@ -703,10 +702,8 @@ interface MathFunction extends GObject.Object, MathExpression {
703
702
 
704
703
  // Own properties of GCalc-2.GCalc.MathFunction
705
704
 
706
- readonly param_types: ExpressionContainer
707
705
  readonly paramTypes: ExpressionContainer
708
706
  name: string | null
709
- n_params: number
710
707
  nParams: number
711
708
  closed: boolean
712
709
 
@@ -715,8 +712,8 @@ interface MathFunction extends GObject.Object, MathExpression {
715
712
  evaluate(): MathExpression
716
713
  verify_params(): boolean
717
714
  get_param_types(): ExpressionContainer
718
- get_name(): string | null
719
- set_name(value: string | null): void
715
+ get_name(): string
716
+ set_name(value: string): void
720
717
  get_n_params(): number
721
718
  set_n_params(value: number): void
722
719
  get_closed(): boolean
@@ -727,8 +724,8 @@ interface MathFunction extends GObject.Object, MathExpression {
727
724
  vfunc_evaluate(): MathExpression
728
725
  vfunc_verify_params(): boolean
729
726
  vfunc_get_param_types(): ExpressionContainer
730
- vfunc_get_name(): string | null
731
- vfunc_set_name(value: string | null): void
727
+ vfunc_get_name(): string
728
+ vfunc_set_name(value: string): void
732
729
  vfunc_get_n_params(): number
733
730
  vfunc_set_n_params(value: number): void
734
731
  vfunc_get_closed(): boolean
@@ -1276,8 +1273,8 @@ interface MathVariable extends GObject.Object, MathExpression {
1276
1273
  // Owm methods of GCalc-2.GCalc.MathVariable
1277
1274
 
1278
1275
  evaluate(): MathExpression
1279
- get_name(): string | null
1280
- set_name(value: string | null): void
1276
+ get_name(): string
1277
+ set_name(value: string): void
1281
1278
  get_value(): MathConstant
1282
1279
  set_value(value: MathConstant): void
1283
1280
  get_bind(): MathVariable
@@ -1287,8 +1284,8 @@ interface MathVariable extends GObject.Object, MathExpression {
1287
1284
  // Own virtual methods of GCalc-2.GCalc.MathVariable
1288
1285
 
1289
1286
  vfunc_evaluate(): MathExpression
1290
- vfunc_get_name(): string | null
1291
- vfunc_set_name(value: string | null): void
1287
+ vfunc_get_name(): string
1288
+ vfunc_set_name(value: string): void
1292
1289
  vfunc_get_value(): MathConstant
1293
1290
  vfunc_set_value(value: MathConstant): void
1294
1291
  vfunc_get_bind(): MathVariable
@@ -1646,8 +1643,8 @@ class ErrorResult extends GObject.Object {
1646
1643
  // Constructors of GCalc-2.GCalc.ErrorResult
1647
1644
 
1648
1645
  constructor(config?: ErrorResult.ConstructorProperties)
1649
- constructor(msg: string | null)
1650
- static new(msg: string | null): ErrorResult
1646
+ constructor(msg: string)
1647
+ static new(msg: string): ErrorResult
1651
1648
  _init(config?: ErrorResult.ConstructorProperties): void
1652
1649
  }
1653
1650
 
@@ -1760,14 +1757,13 @@ interface ExpressionContainer extends Gio.ListModel {
1760
1757
 
1761
1758
  // Conflicting properties
1762
1759
 
1763
- read_only_view: any
1764
1760
  readOnlyView: any
1765
1761
 
1766
1762
  // Owm methods of GCalc-2.GCalc.ExpressionContainer
1767
1763
 
1768
1764
  get_object(position: number): GObject.Object | null
1769
1765
  find(exp: MathExpression): MathExpression | null
1770
- find_named(name: string | null): MathExpression | null
1766
+ find_named(name: string): MathExpression | null
1771
1767
  get_parent(): MathExpression
1772
1768
  set_parent(value: MathExpression): void
1773
1769
 
@@ -1910,7 +1906,7 @@ interface ExpressionHashMap {
1910
1906
  // Overloads of remove
1911
1907
 
1912
1908
  remove(key: any): [ /* returnType */ boolean, /* value */ any ]
1913
- find_named(name: string | null): MathExpression | null
1909
+ find_named(name: string): MathExpression | null
1914
1910
  get_parent(): MathExpression
1915
1911
  set_parent(value: MathExpression): void
1916
1912
 
@@ -2035,7 +2031,7 @@ class Function extends Expression {
2035
2031
  // Constructors of GCalc-2.GCalc.Function
2036
2032
 
2037
2033
  constructor(config?: Function.ConstructorProperties)
2038
- static with_name(name: string | null, nparams: number): Function
2034
+ static with_name(name: string, nparams: number): Function
2039
2035
  constructor()
2040
2036
  static new(): Function
2041
2037
 
@@ -2839,8 +2835,8 @@ class Parameter extends Variable {
2839
2835
  // Constructors of GCalc-2.GCalc.Parameter
2840
2836
 
2841
2837
  constructor(config?: Parameter.ConstructorProperties)
2842
- constructor(name: string | null)
2843
- static new(name: string | null): Parameter
2838
+ constructor(name: string)
2839
+ static new(name: string): Parameter
2844
2840
 
2845
2841
  // Overloads of new
2846
2842
 
@@ -2861,7 +2857,7 @@ interface Parser {
2861
2857
 
2862
2858
  // Owm methods of GCalc-2.GCalc.Parser
2863
2859
 
2864
- parse(str: string | null, eqman: MathEquationManager): void
2860
+ parse(str: string, eqman: MathEquationManager): void
2865
2861
  read_token(): ParserTokenType
2866
2862
  token_to_string(): string | null
2867
2863
 
@@ -3065,7 +3061,6 @@ module Solver {
3065
3061
 
3066
3062
  // Own constructor properties of GCalc-2.GCalc.Solver
3067
3063
 
3068
- equation_manager?: MathEquationManager | null
3069
3064
  equationManager?: MathEquationManager | null
3070
3065
  }
3071
3066
 
@@ -3075,13 +3070,12 @@ interface Solver {
3075
3070
 
3076
3071
  // Own properties of GCalc-2.GCalc.Solver
3077
3072
 
3078
- equation_manager: MathEquationManager
3079
3073
  equationManager: MathEquationManager
3080
3074
 
3081
3075
  // Owm methods of GCalc-2.GCalc.Solver
3082
3076
 
3083
- add_expression(exp: string | null): void
3084
- solve(str: string | null): MathResult
3077
+ add_expression(exp: string): void
3078
+ solve(str: string): MathResult
3085
3079
  get_equation_manager(): MathEquationManager
3086
3080
  set_equation_manager(value: MathEquationManager): void
3087
3081
 
@@ -4174,7 +4168,7 @@ interface MathEquationManagerIface {
4174
4168
 
4175
4169
  // Own fields of GCalc-2.GCalc.MathEquationManagerIface
4176
4170
 
4177
- find_variable: (self: MathEquationManager, name: string | null) => MathVariable
4171
+ find_variable: (self: MathEquationManager, name: string) => MathVariable
4178
4172
  get_equations: (self: MathEquationManager) => ExpressionContainer
4179
4173
  get_functions: (self: MathEquationManager) => ExpressionContainer
4180
4174
  }
@@ -4190,7 +4184,7 @@ interface MathErrorResultIface {
4190
4184
 
4191
4185
  // Own fields of GCalc-2.GCalc.MathErrorResultIface
4192
4186
 
4193
- get_message: (self: MathErrorResult) => string | null
4187
+ get_message: (self: MathErrorResult) => string
4194
4188
  }
4195
4189
 
4196
4190
  abstract class MathErrorResultIface {
@@ -4225,8 +4219,8 @@ interface MathFunctionIface {
4225
4219
  evaluate: (self: MathFunction) => MathExpression
4226
4220
  verify_params: (self: MathFunction) => boolean
4227
4221
  get_param_types: (self: MathFunction) => ExpressionContainer
4228
- get_name: (self: MathFunction) => string | null
4229
- set_name: (self: MathFunction, value: string | null) => void
4222
+ get_name: (self: MathFunction) => string
4223
+ set_name: (self: MathFunction, value: string) => void
4230
4224
  get_n_params: (self: MathFunction) => number
4231
4225
  set_n_params: (self: MathFunction, value: number) => void
4232
4226
  get_closed: (self: MathFunction) => boolean
@@ -4372,8 +4366,8 @@ interface MathVariableIface {
4372
4366
  // Own fields of GCalc-2.GCalc.MathVariableIface
4373
4367
 
4374
4368
  evaluate: (self: MathVariable) => MathExpression
4375
- get_name: (self: MathVariable) => string | null
4376
- set_name: (self: MathVariable, value: string | null) => void
4369
+ get_name: (self: MathVariable) => string
4370
+ set_name: (self: MathVariable, value: string) => void
4377
4371
  get_value: (self: MathVariable) => MathConstant
4378
4372
  set_value: (self: MathVariable, value: MathConstant) => void
4379
4373
  get_bind: (self: MathVariable) => MathVariable
package/package.json CHANGED
@@ -1,13 +1,19 @@
1
1
  {
2
2
  "name": "@girs/gcalc-2",
3
- "version": "2.0.0-3.2.6",
3
+ "version": "2.0.0-3.2.8",
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",
7
7
  "main": "gcalc-2.js",
8
8
  "exports": {
9
- "./ambient": "./gcalc-2-ambient.d.ts",
10
- "./import": "./gcalc-2-import.d.ts",
9
+ "./ambient": {
10
+ "types": "./gcalc-2-ambient.d.ts",
11
+ "default": "./gcalc-2-ambient.js"
12
+ },
13
+ "./import": {
14
+ "types": "./gcalc-2-import.d.ts",
15
+ "default": "./gcalc-2-import.js"
16
+ },
11
17
  ".": {
12
18
  "import": {
13
19
  "types": "./gcalc-2.d.ts",
@@ -25,11 +31,11 @@
25
31
  "test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit gcalc-2.d.cts"
26
32
  },
27
33
  "dependencies": {
28
- "@girs/gee-0.8": "^0.8.0-3.2.6",
29
- "@girs/gio-2.0": "^2.78.0-3.2.6",
30
- "@girs/gjs": "^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"
34
+ "@girs/gee-0.8": "^0.8.0-3.2.8",
35
+ "@girs/gio-2.0": "^2.77.0-3.2.8",
36
+ "@girs/gjs": "^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"
33
39
  },
34
40
  "devDependencies": {
35
41
  "typescript": "*"
@@ -46,7 +52,7 @@
46
52
  "license": "MIT",
47
53
  "repository": {
48
54
  "type": "git",
49
- "url": "git+https://github.com/gjsify/types.git"
55
+ "url": "git+https://github.com/gjsify/ts-for-gir.git"
50
56
  },
51
57
  "bugs": {
52
58
  "url": "https://github.com/gjsify/ts-for-gir/issues"