@danielsimonjr/mathts-expression 0.8.0 → 0.8.2

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.
Files changed (52) hide show
  1. package/README.md +42 -42
  2. package/dist/index.js +276 -347
  3. package/dist/node/AccessorNode.d.ts +121 -132
  4. package/dist/node/AccessorNode.d.ts.map +1 -1
  5. package/dist/node/ArrayNode.d.ts +25 -30
  6. package/dist/node/ArrayNode.d.ts.map +1 -1
  7. package/dist/node/AssignmentNode.d.ts +19 -32
  8. package/dist/node/AssignmentNode.d.ts.map +1 -1
  9. package/dist/node/BlockNode.d.ts +121 -126
  10. package/dist/node/BlockNode.d.ts.map +1 -1
  11. package/dist/node/ConditionalNode.d.ts +25 -30
  12. package/dist/node/ConditionalNode.d.ts.map +1 -1
  13. package/dist/node/ConstantNode.d.ts +93 -100
  14. package/dist/node/ConstantNode.d.ts.map +1 -1
  15. package/dist/node/FunctionAssignmentNode.d.ts +93 -98
  16. package/dist/node/FunctionAssignmentNode.d.ts.map +1 -1
  17. package/dist/node/FunctionNode.d.ts +32 -43
  18. package/dist/node/FunctionNode.d.ts.map +1 -1
  19. package/dist/node/IndexNode.d.ts +949 -72
  20. package/dist/node/IndexNode.d.ts.map +1 -1
  21. package/dist/node/Node.d.ts +43 -39
  22. package/dist/node/Node.d.ts.map +1 -1
  23. package/dist/node/ObjectNode.d.ts +947 -56
  24. package/dist/node/ObjectNode.d.ts.map +1 -1
  25. package/dist/node/OperatorNode.d.ts +955 -79
  26. package/dist/node/OperatorNode.d.ts.map +1 -1
  27. package/dist/node/ParenthesisNode.d.ts +881 -63
  28. package/dist/node/ParenthesisNode.d.ts.map +1 -1
  29. package/dist/node/RangeNode.d.ts +955 -71
  30. package/dist/node/RangeNode.d.ts.map +1 -1
  31. package/dist/node/RelationalNode.d.ts +947 -61
  32. package/dist/node/RelationalNode.d.ts.map +1 -1
  33. package/dist/node/SymbolNode.d.ts +942 -43
  34. package/dist/node/SymbolNode.d.ts.map +1 -1
  35. package/dist/node/utils/access.d.ts +8 -1
  36. package/dist/node/utils/access.d.ts.map +1 -1
  37. package/dist/node/utils/assign.d.ts +9 -1
  38. package/dist/node/utils/assign.d.ts.map +1 -1
  39. package/dist/node/utils/stringSubset.d.ts +8 -8
  40. package/dist/operators.d.ts +12 -15
  41. package/dist/operators.d.ts.map +1 -1
  42. package/dist/parse.d.ts +2 -0
  43. package/dist/parse.d.ts.map +1 -1
  44. package/dist/transform/utils/dimToZeroBase.d.ts +4 -0
  45. package/dist/transform/utils/dimToZeroBase.d.ts.map +1 -1
  46. package/dist/types.d.ts +8 -0
  47. package/dist/types.d.ts.map +1 -1
  48. package/dist/utils/is.d.ts +275 -3
  49. package/dist/utils/is.d.ts.map +1 -1
  50. package/dist/utils/latex.d.ts +12 -0
  51. package/dist/utils/latex.d.ts.map +1 -1
  52. package/package.json +59 -59
@@ -246,6 +246,66 @@ export declare const createAccessorNode: import("../utils/factory.js").FactoryFu
246
246
  getIdentifier(): string;
247
247
  getContent(): any;
248
248
  };
249
+ object: MathNode;
250
+ index: IndexNodeChild;
251
+ optionalChaining: boolean;
252
+ get name(): string;
253
+ get type(): string;
254
+ get isAccessorNode(): boolean;
255
+ /**
256
+ * Compile a node into a JavaScript function.
257
+ * This basically pre-calculates as much as possible and only leaves open
258
+ * calculations which depend on a dynamic scope with variables.
259
+ * @param math - Math.js namespace with functions and constants.
260
+ * @param argNames - An object with argument names as key and `true`
261
+ * as value. Used in the SymbolNode to optimize
262
+ * for arguments from user assigned functions
263
+ * (see FunctionAssignmentNode) or special symbols
264
+ * like `end` (see IndexNode).
265
+ * @returns Returns a function which can be called like:
266
+ * evalNode(scope: Object, args: Object, context: *)
267
+ */
268
+ _compile(math: Record<string, unknown>, argNames: Record<string, boolean>): (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
269
+ /**
270
+ * Execute a callback for each of the child nodes of this node
271
+ * @param callback
272
+ */
273
+ forEach(callback: (child: MathNode, path: string, parent: MathNode) => void): void;
274
+ /**
275
+ * Create a new AccessorNode whose children are the results of calling
276
+ * the provided callback function for each child of the original node.
277
+ * @param callback
278
+ * @returns Returns a transformed copy of the node
279
+ */
280
+ map(callback: (child: MathNode, path: string, parent: MathNode) => MathNode): /*elided*/ any;
281
+ /**
282
+ * Create a clone of this node, a shallow copy
283
+ */
284
+ clone(): /*elided*/ any;
285
+ /**
286
+ * Get string representation
287
+ * @param options
288
+ */
289
+ _toString(options?: StringOptions): string;
290
+ /**
291
+ * Get HTML representation
292
+ * @param options
293
+ */
294
+ _toHTML(options?: StringOptions): string;
295
+ /**
296
+ * Get LaTeX representation
297
+ * @param options
298
+ */
299
+ _toTex(options?: StringOptions): string;
300
+ /**
301
+ * Get a JSON representation of the node
302
+ */
303
+ toJSON(): {
304
+ mathjs: string;
305
+ object: MathNode;
306
+ index: IndexNodeChild;
307
+ optionalChaining: boolean;
308
+ };
249
309
  filter(callback: (node: {
250
310
  get type(): string;
251
311
  get isNode(): boolean;
@@ -346,71 +406,6 @@ export declare const createAccessorNode: import("../utils/factory.js").FactoryFu
346
406
  getIdentifier(): string;
347
407
  getContent(): any;
348
408
  }[];
349
- object: MathNode;
350
- index: IndexNodeChild;
351
- optionalChaining: boolean;
352
- get name(): string;
353
- get type(): string;
354
- get isAccessorNode(): boolean;
355
- /**
356
- * Compile a node into a JavaScript function.
357
- * This basically pre-calculates as much as possible and only leaves open
358
- * calculations which depend on a dynamic scope with variables.
359
- * @param {Object} math Math.js namespace with functions and constants.
360
- * @param {Object} argNames An object with argument names as key and `true`
361
- * as value. Used in the SymbolNode to optimize
362
- * for arguments from user assigned functions
363
- * (see FunctionAssignmentNode) or special symbols
364
- * like `end` (see IndexNode).
365
- * @return {function} Returns a function which can be called like:
366
- * evalNode(scope: Object, args: Object, context: *)
367
- */
368
- _compile(math: Record<string, unknown>, argNames: Record<string, boolean>): (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
369
- /**
370
- * Execute a callback for each of the child nodes of this node
371
- * @param {function(child: Node, path: string, parent: Node)} callback
372
- */
373
- forEach(callback: (child: MathNode, path: string, parent: MathNode) => void): void;
374
- /**
375
- * Create a new AccessorNode whose children are the results of calling
376
- * the provided callback function for each child of the original node.
377
- * @param {function(child: Node, path: string, parent: Node): Node} callback
378
- * @returns {AccessorNode} Returns a transformed copy of the node
379
- */
380
- map(callback: (child: MathNode, path: string, parent: MathNode) => MathNode): /*elided*/ any;
381
- /**
382
- * Create a clone of this node, a shallow copy
383
- * @return {AccessorNode}
384
- */
385
- clone(): /*elided*/ any;
386
- /**
387
- * Get string representation
388
- * @param {Object} options
389
- * @return {string}
390
- */
391
- _toString(options?: StringOptions): string;
392
- /**
393
- * Get HTML representation
394
- * @param {Object} options
395
- * @return {string}
396
- */
397
- _toHTML(options?: StringOptions): string;
398
- /**
399
- * Get LaTeX representation
400
- * @param {Object} options
401
- * @return {string}
402
- */
403
- _toTex(options?: StringOptions): string;
404
- /**
405
- * Get a JSON representation of the node
406
- * @returns {Object}
407
- */
408
- toJSON(): {
409
- mathjs: string;
410
- object: MathNode;
411
- index: IndexNodeChild;
412
- optionalChaining: boolean;
413
- };
414
409
  cloneDeep(): {
415
410
  get type(): string;
416
411
  get isNode(): boolean;
@@ -530,11 +525,10 @@ export declare const createAccessorNode: import("../utils/factory.js").FactoryFu
530
525
  name: string;
531
526
  /**
532
527
  * Instantiate an AccessorNode from its JSON representation
533
- * @param {Object} json
528
+ * @param json
534
529
  * An object structured like
535
530
  * `{"mathjs": "AccessorNode", object: ..., index: ...}`,
536
531
  * where mathjs is optional
537
- * @returns {AccessorNode}
538
532
  */
539
533
  fromJSON(json: {
540
534
  object: MathNode;
@@ -778,6 +772,66 @@ export declare const createAccessorNode: import("../utils/factory.js").FactoryFu
778
772
  getIdentifier(): string;
779
773
  getContent(): any;
780
774
  };
775
+ object: MathNode;
776
+ index: IndexNodeChild;
777
+ optionalChaining: boolean;
778
+ get name(): string;
779
+ get type(): string;
780
+ get isAccessorNode(): boolean;
781
+ /**
782
+ * Compile a node into a JavaScript function.
783
+ * This basically pre-calculates as much as possible and only leaves open
784
+ * calculations which depend on a dynamic scope with variables.
785
+ * @param math - Math.js namespace with functions and constants.
786
+ * @param argNames - An object with argument names as key and `true`
787
+ * as value. Used in the SymbolNode to optimize
788
+ * for arguments from user assigned functions
789
+ * (see FunctionAssignmentNode) or special symbols
790
+ * like `end` (see IndexNode).
791
+ * @returns Returns a function which can be called like:
792
+ * evalNode(scope: Object, args: Object, context: *)
793
+ */
794
+ _compile(math: Record<string, unknown>, argNames: Record<string, boolean>): (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
795
+ /**
796
+ * Execute a callback for each of the child nodes of this node
797
+ * @param callback
798
+ */
799
+ forEach(callback: (child: MathNode, path: string, parent: MathNode) => void): void;
800
+ /**
801
+ * Create a new AccessorNode whose children are the results of calling
802
+ * the provided callback function for each child of the original node.
803
+ * @param callback
804
+ * @returns Returns a transformed copy of the node
805
+ */
806
+ map(callback: (child: MathNode, path: string, parent: MathNode) => MathNode): /*elided*/ any;
807
+ /**
808
+ * Create a clone of this node, a shallow copy
809
+ */
810
+ clone(): /*elided*/ any;
811
+ /**
812
+ * Get string representation
813
+ * @param options
814
+ */
815
+ _toString(options?: StringOptions): string;
816
+ /**
817
+ * Get HTML representation
818
+ * @param options
819
+ */
820
+ _toHTML(options?: StringOptions): string;
821
+ /**
822
+ * Get LaTeX representation
823
+ * @param options
824
+ */
825
+ _toTex(options?: StringOptions): string;
826
+ /**
827
+ * Get a JSON representation of the node
828
+ */
829
+ toJSON(): {
830
+ mathjs: string;
831
+ object: MathNode;
832
+ index: IndexNodeChild;
833
+ optionalChaining: boolean;
834
+ };
781
835
  filter(callback: (node: {
782
836
  get type(): string;
783
837
  get isNode(): boolean;
@@ -878,71 +932,6 @@ export declare const createAccessorNode: import("../utils/factory.js").FactoryFu
878
932
  getIdentifier(): string;
879
933
  getContent(): any;
880
934
  }[];
881
- object: MathNode;
882
- index: IndexNodeChild;
883
- optionalChaining: boolean;
884
- get name(): string;
885
- get type(): string;
886
- get isAccessorNode(): boolean;
887
- /**
888
- * Compile a node into a JavaScript function.
889
- * This basically pre-calculates as much as possible and only leaves open
890
- * calculations which depend on a dynamic scope with variables.
891
- * @param {Object} math Math.js namespace with functions and constants.
892
- * @param {Object} argNames An object with argument names as key and `true`
893
- * as value. Used in the SymbolNode to optimize
894
- * for arguments from user assigned functions
895
- * (see FunctionAssignmentNode) or special symbols
896
- * like `end` (see IndexNode).
897
- * @return {function} Returns a function which can be called like:
898
- * evalNode(scope: Object, args: Object, context: *)
899
- */
900
- _compile(math: Record<string, unknown>, argNames: Record<string, boolean>): (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
901
- /**
902
- * Execute a callback for each of the child nodes of this node
903
- * @param {function(child: Node, path: string, parent: Node)} callback
904
- */
905
- forEach(callback: (child: MathNode, path: string, parent: MathNode) => void): void;
906
- /**
907
- * Create a new AccessorNode whose children are the results of calling
908
- * the provided callback function for each child of the original node.
909
- * @param {function(child: Node, path: string, parent: Node): Node} callback
910
- * @returns {AccessorNode} Returns a transformed copy of the node
911
- */
912
- map(callback: (child: MathNode, path: string, parent: MathNode) => MathNode): /*elided*/ any;
913
- /**
914
- * Create a clone of this node, a shallow copy
915
- * @return {AccessorNode}
916
- */
917
- clone(): /*elided*/ any;
918
- /**
919
- * Get string representation
920
- * @param {Object} options
921
- * @return {string}
922
- */
923
- _toString(options?: StringOptions): string;
924
- /**
925
- * Get HTML representation
926
- * @param {Object} options
927
- * @return {string}
928
- */
929
- _toHTML(options?: StringOptions): string;
930
- /**
931
- * Get LaTeX representation
932
- * @param {Object} options
933
- * @return {string}
934
- */
935
- _toTex(options?: StringOptions): string;
936
- /**
937
- * Get a JSON representation of the node
938
- * @returns {Object}
939
- */
940
- toJSON(): {
941
- mathjs: string;
942
- object: MathNode;
943
- index: IndexNodeChild;
944
- optionalChaining: boolean;
945
- };
946
935
  cloneD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O,KAAK,OAAO;QA2D5F;;;WAGG;0BACe,CAAC,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,KAAK,IAAI,GAAG,IAAI;QAKlF;;;;;WAKG;sBACW,CAAC,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,KAAK,QAAQ;QAQ3E;;WAEG;;QAKH;;;WAGG;4BACiB,aAAa,GAAG,MAAM;QAS1C;;;WAGG;0BACe,aAAa,GAAG,MAAM;QAYxC;;;WAGG;yBACc,aAAa,GAAG,MAAM;QASvC;;WAEG;kBACO;YACR,MAAM,EAAE,MAAM,CAAC;YACf,MAAM,EAAE,QAAQ,CAAC;YACjB,KAAK,EAAE,cAAc,CAAC;YACtB,gBAAgB,EAAE,OAAO,CAAC;SAC3B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4BN,CAAC"}
@@ -47,43 +47,41 @@ export declare const createArrayNode: import("../utils/factory.js").FactoryFunct
47
47
  * Compile a node into a JavaScript function.
48
48
  * This basically pre-calculates as much as possible and only leaves open
49
49
  * calculations which depend on a dynamic scope with variables.
50
- * @param {Object} math Math.js namespace with functions and constants.
51
- * @param {Object} argNames An object with argument names as key and `true`
50
+ * @param math - Math.js namespace with functions and constants.
51
+ * @param argNames - An object with argument names as key and `true`
52
52
  * as value. Used in the SymbolNode to optimize
53
53
  * for arguments from user assigned functions
54
54
  * (see FunctionAssignmentNode) or special symbols
55
55
  * like `end` (see IndexNode).
56
- * @return {function} Returns a function which can be called like:
56
+ * @returns Returns a function which can be called like:
57
57
  * evalNode(scope: Object, args: Object, context: *)
58
58
  */
59
59
  _compile(math: Record<string, unknown>, argNames: Record<string, boolean>): (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
60
60
  /**
61
61
  * Execute a callback for each of the child nodes of this node
62
- * @param {function(child: Node, path: string, parent: Node)} callback
62
+ * @param callback
63
63
  */
64
64
  forEach(callback: (child: MathNode, path: string, parent: MathNode) => void): void;
65
65
  /**
66
66
  * Create a new ArrayNode whose children are the results of calling
67
67
  * the provided callback function for each child of the original node.
68
- * @param {function(child: Node, path: string, parent: Node): Node} callback
69
- * @returns {ArrayNode} Returns a transformed copy of the node
68
+ * @param callback
69
+ * @returns Returns a transformed copy of the node
70
70
  */
71
71
  map(callback: (child: MathNode, path: string, parent: MathNode) => MathNode): /*elided*/ any;
72
72
  /**
73
73
  * Create a clone of this node, a shallow copy
74
- * @return {ArrayNode}
75
74
  */
76
75
  clone(): /*elided*/ any;
77
76
  /**
78
77
  * Get string representation
79
- * @param {Object} options
80
- * @return {string} str
78
+ * @param options
79
+ * @returns str
81
80
  * @override
82
81
  */
83
82
  _toString(options?: StringOptions): string;
84
83
  /**
85
84
  * Get a JSON representation of the node
86
- * @returns {Object}
87
85
  */
88
86
  toJSON(): {
89
87
  mathjs: string;
@@ -91,15 +89,15 @@ export declare const createArrayNode: import("../utils/factory.js").FactoryFunct
91
89
  };
92
90
  /**
93
91
  * Get HTML representation
94
- * @param {Object} options
95
- * @return {string} str
92
+ * @param options
93
+ * @returns str
96
94
  * @override
97
95
  */
98
96
  _toHTML(options?: StringOptions): string;
99
97
  /**
100
98
  * Get LaTeX representation
101
- * @param {Object} options
102
- * @return {string} str
99
+ * @param options
100
+ * @returns str
103
101
  */
104
102
  _toTex(options?: StringOptions): string;
105
103
  traverse(callback: (node: {
@@ -521,10 +519,9 @@ export declare const createArrayNode: import("../utils/factory.js").FactoryFunct
521
519
  name: string;
522
520
  /**
523
521
  * Instantiate an ArrayNode from its JSON representation
524
- * @param {Object} json An object structured like
522
+ * @param json - An object structured like
525
523
  * `{"mathjs": "ArrayNode", items: [...]}`,
526
524
  * where mathjs is optional
527
- * @returns {ArrayNode}
528
525
  */
529
526
  fromJSON(json: {
530
527
  items: MathNode[];
@@ -573,43 +570,41 @@ export declare const createArrayNode: import("../utils/factory.js").FactoryFunct
573
570
  * Compile a node into a JavaScript function.
574
571
  * This basically pre-calculates as much as possible and only leaves open
575
572
  * calculations which depend on a dynamic scope with variables.
576
- * @param {Object} math Math.js namespace with functions and constants.
577
- * @param {Object} argNames An object with argument names as key and `true`
573
+ * @param math - Math.js namespace with functions and constants.
574
+ * @param argNames - An object with argument names as key and `true`
578
575
  * as value. Used in the SymbolNode to optimize
579
576
  * for arguments from user assigned functions
580
577
  * (see FunctionAssignmentNode) or special symbols
581
578
  * like `end` (see IndexNode).
582
- * @return {function} Returns a function which can be called like:
579
+ * @returns Returns a function which can be called like:
583
580
  * evalNode(scope: Object, args: Object, context: *)
584
581
  */
585
582
  _compile(math: Record<string, unknown>, argNames: Record<string, boolean>): (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
586
583
  /**
587
584
  * Execute a callback for each of the child nodes of this node
588
- * @param {function(child: Node, path: string, parent: Node)} callback
585
+ * @param callback
589
586
  */
590
587
  forEach(callback: (child: MathNode, path: string, parent: MathNode) => void): void;
591
588
  /**
592
589
  * Create a new ArrayNode whose children are the results of calling
593
590
  * the provided callback function for each child of the original node.
594
- * @param {function(child: Node, path: string, parent: Node): Node} callback
595
- * @returns {ArrayNode} Returns a transformed copy of the node
591
+ * @param callback
592
+ * @returns Returns a transformed copy of the node
596
593
  */
597
594
  map(callback: (child: MathNode, path: string, parent: MathNode) => MathNode): /*elided*/ any;
598
595
  /**
599
596
  * Create a clone of this node, a shallow copy
600
- * @return {ArrayNode}
601
597
  */
602
598
  clone(): /*elided*/ any;
603
599
  /**
604
600
  * Get string representation
605
- * @param {Object} options
606
- * @return {string} str
601
+ * @param options
602
+ * @returns str
607
603
  * @override
608
604
  */
609
605
  _toString(options?: StringOptions): string;
610
606
  /**
611
607
  * Get a JSON representation of the node
612
- * @returns {Object}
613
608
  */
614
609
  toJSON(): {
615
610
  mathjs: string;
@@ -617,15 +612,15 @@ export declare const createArrayNode: import("../utils/factory.js").FactoryFunct
617
612
  };
618
613
  /**
619
614
  * Get HTML representation
620
- * @param {Object} options
621
- * @return {string} str
615
+ * @param options
616
+ * @returns str
622
617
  * @override
623
618
  */
624
619
  _toHTML(options?: StringOptions): string;
625
620
  /**
626
621
  * Get LaTeX representation
627
- * @param {Object} options
628
- * @return {string} str
622
+ * @param options
623
+ * @returns str
629
624
  */
630
625
  _toTex(options?: StringOptions): string;
631
626
  traverse(callback: (node: {
@@ -1 +1 @@
1
- {"version":3,"file":"ArrayNode.d.ts","sourceRoot":"","sources":["../../src/node/ArrayNode.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAKzD,eAAO,MAAM,eAAe;UAGP,KAAK,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,QAAQ;;iBAU/B,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eARvB,QAAQ,EAAE;oBAkBL,MAAM;2BAGC,OAAO;QAI1B;;;;;;;;;;;;WAYG;uBAEK,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,YACnB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAChC,CAAC,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,EAAE,OAAO,KAAK,OAAO;QAgC5F;;;WAGG;0BACe,CAAC,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,KAAK,IAAI,GAAG,IAAI;QAOlF;;;;;WAKG;sBACW,CAAC,KAAK,EAAE,QAAQ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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0B5C,CAAC"}
@@ -429,42 +429,39 @@ export declare const createAssignmentNode: import("../utils/factory.js").Factory
429
429
  * Compile a node into a JavaScript function.
430
430
  * This basically pre-calculates as much as possible and only leaves open
431
431
  * calculations which depend on a dynamic scope with variables.
432
- * @param {Object} math Math.js namespace with functions and constants.
433
- * @param {Object} argNames An object with argument names as key and `true`
432
+ * @param math - Math.js namespace with functions and constants.
433
+ * @param argNames - An object with argument names as key and `true`
434
434
  * as value. Used in the SymbolNode to optimize
435
435
  * for arguments from user assigned functions
436
436
  * (see FunctionAssignmentNode) or special symbols
437
437
  * like `end` (see IndexNode).
438
- * @return {function} Returns a function which can be called like:
438
+ * @returns Returns a function which can be called like:
439
439
  * evalNode(scope: Object, args: Object, context: *)
440
440
  */
441
441
  _compile(math: Record<string, unknown>, argNames: Record<string, boolean>): (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
442
442
  /**
443
443
  * Execute a callback for each of the child nodes of this node
444
- * @param {function(child: Node, path: string, parent: Node)} callback
444
+ * @param callback
445
445
  */
446
446
  forEach(callback: (child: MathNode, path: string, parent: MathNode) => void): void;
447
447
  /**
448
448
  * Create a new AssignmentNode whose children are the results of calling
449
449
  * the provided callback function for each child of the original node.
450
- * @param {function(child: Node, path: string, parent: Node): Node} callback
451
- * @returns {AssignmentNode} Returns a transformed copy of the node
450
+ * @param callback
451
+ * @returns Returns a transformed copy of the node
452
452
  */
453
453
  map(callback: (child: MathNode, path: string, parent: MathNode) => MathNode): /*elided*/ any;
454
454
  /**
455
455
  * Create a clone of this node, a shallow copy
456
- * @return {AssignmentNode}
457
456
  */
458
457
  clone(): /*elided*/ any;
459
458
  /**
460
459
  * Get string representation
461
- * @param {Object} options
462
- * @return {string}
460
+ * @param options
463
461
  */
464
462
  _toString(options?: StringOptions): string;
465
463
  /**
466
464
  * Get a JSON representation of the node
467
- * @returns {Object}
468
465
  */
469
466
  toJSON(): {
470
467
  mathjs: string;
@@ -474,14 +471,11 @@ export declare const createAssignmentNode: import("../utils/factory.js").Factory
474
471
  };
475
472
  /**
476
473
  * Get HTML representation
477
- * @param {Object} options
478
- * @return {string}
474
+ * @param options
479
475
  */
480
476
  _toHTML(options?: StringOptions): string;
481
477
  /**
482
- * Get LaTeX representation
483
- * @param {Object} options
484
- * @return {string}
478
+ * Get the MathML representation of this node.
485
479
  */
486
480
  _toMathML(): string;
487
481
  _toTex(options?: StringOptions): string;
@@ -529,11 +523,10 @@ export declare const createAssignmentNode: import("../utils/factory.js").Factory
529
523
  name: string;
530
524
  /**
531
525
  * Instantiate an AssignmentNode from its JSON representation
532
- * @param {Object} json
526
+ * @param json
533
527
  * An object structured like
534
528
  * `{"mathjs": "AssignmentNode", object: ..., index: ..., value: ...}`,
535
529
  * where mathjs is optional
536
- * @returns {AssignmentNode}
537
530
  */
538
531
  fromJSON(json: {
539
532
  object: MathNode;
@@ -961,42 +954,39 @@ export declare const createAssignmentNode: import("../utils/factory.js").Factory
961
954
  * Compile a node into a JavaScript function.
962
955
  * This basically pre-calculates as much as possible and only leaves open
963
956
  * calculations which depend on a dynamic scope with variables.
964
- * @param {Object} math Math.js namespace with functions and constants.
965
- * @param {Object} argNames An object with argument names as key and `true`
957
+ * @param math - Math.js namespace with functions and constants.
958
+ * @param argNames - An object with argument names as key and `true`
966
959
  * as value. Used in the SymbolNode to optimize
967
960
  * for arguments from user assigned functions
968
961
  * (see FunctionAssignmentNode) or special symbols
969
962
  * like `end` (see IndexNode).
970
- * @return {function} Returns a function which can be called like:
963
+ * @returns Returns a function which can be called like:
971
964
  * evalNode(scope: Object, args: Object, context: *)
972
965
  */
973
966
  _compile(math: Record<string, unknown>, argNames: Record<string, boolean>): (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
974
967
  /**
975
968
  * Execute a callback for each of the child nodes of this node
976
- * @param {function(child: Node, path: string, parent: Node)} callback
969
+ * @param callback
977
970
  */
978
971
  forEach(callback: (child: MathNode, path: string, parent: MathNode) => void): void;
979
972
  /**
980
973
  * Create a new AssignmentNode whose children are the results of calling
981
974
  * the provided callback function for each child of the original node.
982
- * @param {function(child: Node, path: string, parent: Node): Node} callback
983
- * @returns {AssignmentNode} Returns a transformed copy of the node
975
+ * @param callback
976
+ * @returns Returns a transformed copy of the node
984
977
  */
985
978
  map(callback: (child: MathNode, path: string, parent: MathNode) => MathNode): /*elided*/ any;
986
979
  /**
987
980
  * Create a clone of this node, a shallow copy
988
- * @return {AssignmentNode}
989
981
  */
990
982
  clone(): /*elided*/ any;
991
983
  /**
992
984
  * Get string representation
993
- * @param {Object} options
994
- * @return {string}
985
+ * @param options
995
986
  */
996
987
  _toString(options?: StringOptions): string;
997
988
  /**
998
989
  * Get a JSON representation of the node
999
- * @returns {Object}
1000
990
  */
1001
991
  toJSON(): {
1002
992
  mathjs: string;
@@ -1006,14 +996,11 @@ export declare const createAssignmentNode: import("../utils/factory.js").Factory
1006
996
  };
1007
997
  /**
1008
998
  * Get HTML representation
1009
- * @param {Object} options
1010
- * @return {string}
999
+ * @param options
1011
1000
  */
1012
1001
  _toHTML(options?: StringOptions): string;
1013
1002
  /**
1014
- * Get LaTeX representation
1015
- * @param {Object} options
1016
- * @return {string}
1003
+ * Get the MathML representation of this node.
1017
1004
  */
1018
1005
  _toMathML(): string;
1019
1006
  _toTex(options?: StringOptions): string;
@@ -1 +1 @@
1
- {"version":3,"file":"AssignmentNode.d.ts","sourceRoot":"","sources":["../../src/node/AssignmentNode.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,MAA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