pimath 0.0.100 → 0.0.101

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.
@@ -1,6 +1,6 @@
1
1
  import { Token } from "../shutingyard";
2
2
  import { Fraction } from "../coefficients/fraction";
3
- export declare type literalType = {
3
+ export type literalType = {
4
4
  [Key: string]: Fraction;
5
5
  };
6
6
  export declare class Monom {
@@ -5,7 +5,7 @@ import { literalType, Monom } from './monom';
5
5
  import { Token } from '../shutingyard';
6
6
  import { Fraction } from "../coefficients/fraction";
7
7
  import { ISolution } from "./equation";
8
- export declare type PolynomParsingType = string | Polynom | number | Fraction | Monom;
8
+ export type PolynomParsingType = string | Polynom | number | Fraction | Monom;
9
9
  export interface IEuclidian {
10
10
  quotient: Polynom;
11
11
  reminder: Polynom;
@@ -5,7 +5,7 @@
5
5
  import { Rational } from "./rational";
6
6
  import { ISolution } from "./equation";
7
7
  import { Polynom } from "./polynom";
8
- export declare type StudyableFunction = Rational;
8
+ export type StudyableFunction = Rational;
9
9
  export declare enum ZEROTYPE {
10
10
  ZERO = "z",
11
11
  DEFENCE = "d",
@@ -1,4 +1,4 @@
1
- export declare type FractionParsingType = number | string | Fraction;
1
+ export type FractionParsingType = number | string | Fraction;
2
2
  /**
3
3
  * The fraction class make possible to handle
4
4
  * TODO: Write the documentation correctly.
@@ -1,5 +1,5 @@
1
1
  import { ExpressionFactor, ExpressionMember } from "./internals";
2
- export declare type ExpressionMemberType = {
2
+ export type ExpressionMemberType = {
3
3
  member: ExpressionMember;
4
4
  sign: number;
5
5
  };
@@ -1,6 +1,6 @@
1
1
  import { Polynom } from "../algebra/polynom";
2
2
  import { Fraction } from "../coefficients/fraction";
3
- declare type Factor = {
3
+ type Factor = {
4
4
  polynom: Polynom;
5
5
  degree: Fraction;
6
6
  };
@@ -1,6 +1,6 @@
1
1
  import { Polynom, PolynomParsingType } from "../algebra/polynom";
2
2
  import { Fraction, FractionParsingType } from "../coefficients/fraction";
3
- declare type PolynomExpMathFunctionType = {
3
+ type PolynomExpMathFunctionType = {
4
4
  name: string;
5
5
  fn: Function;
6
6
  tex: string;
@@ -1,17 +1,17 @@
1
- export declare type randomCoefficientConfig = {
1
+ export type randomCoefficientConfig = {
2
2
  negative?: boolean;
3
3
  max?: number;
4
4
  reduced?: boolean;
5
5
  zero?: boolean;
6
6
  natural?: boolean;
7
7
  };
8
- export declare type randomMonomConfig = {
8
+ export type randomMonomConfig = {
9
9
  letters?: string;
10
10
  degree?: number;
11
11
  fraction?: boolean | randomCoefficientConfig;
12
12
  zero?: boolean;
13
13
  };
14
- export declare type randomPolynomConfig = randomMonomConfig & {
14
+ export type randomPolynomConfig = randomMonomConfig & {
15
15
  unit?: boolean;
16
16
  factorable?: boolean;
17
17
  allowNullMonom?: boolean;
@@ -1,4 +1,4 @@
1
- export declare type tokenType = {
1
+ export type tokenType = {
2
2
  [key: string]: {
3
3
  precedence: number;
4
4
  associative: string;
@@ -22,7 +22,7 @@ export declare enum ShutingyardMode {
22
22
  SET = "set",
23
23
  NUMERIC = "numeric"
24
24
  }
25
- export declare type Token = {
25
+ export type Token = {
26
26
  token: string;
27
27
  tokenType: string;
28
28
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pimath",
3
- "version": "0.0.100",
3
+ "version": "0.0.101",
4
4
  "description": "A math library for teacher :)",
5
5
  "scripts": {
6
6
  "test": "mocha -r ts-node/register 'tests/**/*.test.ts'",
@@ -17,18 +17,18 @@
17
17
  "devDependencies": {
18
18
  "@types/chai": "*",
19
19
  "@types/mocha": "*",
20
- "@types/node": "^18.11.9",
21
- "@typescript-eslint/eslint-plugin": "^5.42.0",
22
- "@typescript-eslint/parser": "^5.42.0",
20
+ "@types/node": "^18.11.17",
21
+ "@typescript-eslint/eslint-plugin": "^5.47.0",
22
+ "@typescript-eslint/parser": "^5.47.0",
23
23
  "chai": "*",
24
24
  "mocha": "*",
25
- "eslint": "^8.27.0",
26
- "ts-loader": "^9.4.1",
25
+ "eslint": "^8.30.0",
26
+ "ts-loader": "^9.4.2",
27
27
  "ts-node": "^10.9.1",
28
- "typedoc": "^0.23.20",
29
- "typescript": "^4.8.4",
30
- "webpack": "^5.74.0",
28
+ "typedoc": "^0.23.23",
29
+ "typescript": "4.9.4",
30
+ "webpack": "^5.75.0",
31
31
  "webpack-bundle-analyzer": "^4.7.0",
32
- "webpack-cli": "^4.10.0"
32
+ "webpack-cli": "^5.0.1"
33
33
  }
34
34
  }