umt 1.0.12 → 1.0.14
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/.github/workflows/test.yml +23 -0
- package/jest.config.js +13 -0
- package/make_test.py +24 -0
- package/module/Array/arraysJoin.js +6 -0
- package/module/Array/getArraysCommon.js +17 -13
- package/module/Array/getArraysDiff.js +5 -13
- package/module/Array/index.js +17 -17
- package/module/Date/index.js +5 -5
- package/module/Math/average.js +4 -2
- package/module/Math/calculator/calculatorInitialization.d.ts +6 -0
- package/module/Math/calculator/calculatorInitialization.js +17 -0
- package/module/Math/calculator/exchange.js +12 -0
- package/module/Math/calculator/index.d.ts +2 -2
- package/module/Math/calculator/index.js +5 -5
- package/module/Math/index.d.ts +6 -4
- package/module/Math/index.js +123 -116
- package/module/Math/isDouble.d.ts +2 -3
- package/module/Math/isDouble.js +2 -3
- package/module/Math/lcm.js +3 -0
- package/module/Math/roundOf.d.ts +7 -0
- package/module/Math/roundOf.js +14 -0
- package/module/Math/softmax.js +2 -2
- package/module/Math/subtract.js +9 -3
- package/module/Math/toCelsius.d.ts +5 -0
- package/module/Math/toCelsius.js +5 -0
- package/module/Math/valueSwap.d.ts +2 -2
- package/module/Math/valueSwap.js +1 -1
- package/module/Simple/Date/index.js +5 -5
- package/module/Simple/Math/dayOfWeek.d.ts +2 -2
- package/module/Simple/Math/dayOfWeek.js +9 -3
- package/module/Simple/Math/index.d.ts +2 -2
- package/module/Simple/Math/index.js +8 -8
- package/module/Simple/Tool/index.js +5 -5
- package/module/Simple/index.d.ts +1 -1
- package/module/Simple/index.js +12 -12
- package/module/Tool/dayOfWeek.d.ts +6 -5
- package/module/Tool/index.d.ts +3 -3
- package/module/Tool/index.js +20 -20
- package/module/index.d.ts +1 -1
- package/module/index.js +17 -17
- package/module/tsconfig.tsbuildinfo +1 -1
- package/module/types/monType.d.ts +5 -1
- package/package.json +39 -28
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# アクション名
|
|
2
|
+
name: Test
|
|
3
|
+
|
|
4
|
+
# タイミングを指定
|
|
5
|
+
on:
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [main]
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
build:
|
|
11
|
+
name: build
|
|
12
|
+
runs-on: ubuntu-latest
|
|
13
|
+
steps:
|
|
14
|
+
- uses: actions/checkout@v1
|
|
15
|
+
- name: yarn install
|
|
16
|
+
run: yarn install
|
|
17
|
+
- name: Run Test
|
|
18
|
+
run: yarn test
|
|
19
|
+
- name: Upload test coverage artifact
|
|
20
|
+
uses: actions/upload-artifact@v1
|
|
21
|
+
with:
|
|
22
|
+
name: coverage
|
|
23
|
+
path: coverage_dir
|
package/jest.config.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/** @type {import('ts-jest').JestConfigWithTsJest} */
|
|
2
|
+
module.exports = {
|
|
3
|
+
preset: 'ts-jest',
|
|
4
|
+
testEnvironment: 'node',
|
|
5
|
+
roots: ['<rootDir>/tests'],
|
|
6
|
+
collectCoverage: true,
|
|
7
|
+
collectCoverageFrom: [
|
|
8
|
+
'<rootDir>/tests/**/*.ts',
|
|
9
|
+
'!**/node_modules/**',
|
|
10
|
+
],
|
|
11
|
+
coverageDirectory: 'coverage_dir',
|
|
12
|
+
coverageReporters: ['html'],
|
|
13
|
+
};
|
package/make_test.py
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import os
|
|
2
|
+
import pathlib
|
|
3
|
+
paths = ["Array", "Math", "Simple"]
|
|
4
|
+
for path in paths:
|
|
5
|
+
path = f"src/{path}"
|
|
6
|
+
files = os.listdir(path)
|
|
7
|
+
files_file = [f for f in files if os.path.isfile(os.path.join(path, f))]
|
|
8
|
+
for file in files_file:
|
|
9
|
+
if(file == "index.ts" or file == ".DS_Store" or file in "random"):
|
|
10
|
+
continue
|
|
11
|
+
path = pathlib.Path(path)
|
|
12
|
+
p_dir = path.name
|
|
13
|
+
p_dir = f"tests/{p_dir}/"
|
|
14
|
+
file = pathlib.Path(file).stem
|
|
15
|
+
if not os.path.exists(p_dir):
|
|
16
|
+
os.makedirs(p_dir)
|
|
17
|
+
if os.path.isfile(p_dir + file + ".test.ts"):
|
|
18
|
+
continue
|
|
19
|
+
pathlib.Path(p_dir + file + ".test.ts").touch()
|
|
20
|
+
with open(p_dir + file + ".test.ts", "w") as f:
|
|
21
|
+
f.write(
|
|
22
|
+
"""import { %s } from "../../module/%s/%s";
|
|
23
|
+
test('{%s}', () => {});
|
|
24
|
+
""" % (file, path.name, file, file))
|
|
@@ -7,7 +7,13 @@ exports.arraysJoin = void 0;
|
|
|
7
7
|
* @param {any[]} ...arrays
|
|
8
8
|
*/
|
|
9
9
|
const arraysJoin = (array, ...arrays) => {
|
|
10
|
+
if (!array || !Array.isArray(array)) {
|
|
11
|
+
throw new Error('Invalid array');
|
|
12
|
+
}
|
|
10
13
|
for (const i of arrays) {
|
|
14
|
+
if (!i || !Array.isArray(i)) {
|
|
15
|
+
throw new Error('Invalid array');
|
|
16
|
+
}
|
|
11
17
|
array.push(...i);
|
|
12
18
|
}
|
|
13
19
|
return [...new Set(array)];
|
|
@@ -7,19 +7,23 @@ exports.getArraysCommon = void 0;
|
|
|
7
7
|
* @param {any[]} ...arrays
|
|
8
8
|
*/
|
|
9
9
|
const getArraysCommon = (array, ...arrays) => {
|
|
10
|
-
const result = []
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
for (const j of arrays) {
|
|
14
|
-
if (!j.includes(i)) {
|
|
15
|
-
flag = false;
|
|
16
|
-
break;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
if (flag) {
|
|
20
|
-
result.push(i);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
10
|
+
const result = [array, ...arrays].reduce((prev, current) => {
|
|
11
|
+
return prev.filter((item) => current.includes(item));
|
|
12
|
+
});
|
|
23
13
|
return result;
|
|
14
|
+
// const result: any[] = [];
|
|
15
|
+
// for (const i of array) {
|
|
16
|
+
// let flag = true;
|
|
17
|
+
// for (const j of arrays) {
|
|
18
|
+
// if (!j.includes(i)) {
|
|
19
|
+
// flag = false;
|
|
20
|
+
// break;
|
|
21
|
+
// }
|
|
22
|
+
// }
|
|
23
|
+
// if (flag) {
|
|
24
|
+
// result.push(i);
|
|
25
|
+
// }
|
|
26
|
+
// }
|
|
27
|
+
// return result;
|
|
24
28
|
};
|
|
25
29
|
exports.getArraysCommon = getArraysCommon;
|
|
@@ -7,19 +7,11 @@ exports.getArraysDiff = void 0;
|
|
|
7
7
|
* @param {any[]} ...arrays
|
|
8
8
|
*/
|
|
9
9
|
const getArraysDiff = (array, ...arrays) => {
|
|
10
|
-
const result =
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
flag = false;
|
|
16
|
-
break;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
if (flag) {
|
|
20
|
-
result.push(i);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
10
|
+
const result = array
|
|
11
|
+
.concat(...arrays)
|
|
12
|
+
.filter((val, _index, arr) => {
|
|
13
|
+
return arr.indexOf(val) === arr.lastIndexOf(val);
|
|
14
|
+
});
|
|
23
15
|
return result;
|
|
24
16
|
};
|
|
25
17
|
exports.getArraysDiff = getArraysDiff;
|
package/module/Array/index.js
CHANGED
|
@@ -10,7 +10,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
10
10
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
11
11
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
12
12
|
};
|
|
13
|
-
var
|
|
13
|
+
var _UMTArrayClass_Local_arraysJoin, _UMTArrayClass_Local_getArraysCommon, _UMTArrayClass_Local_getArraysDiff, _UMTArrayClass_Local_quickSort, _UMTArrayClass_Local_sum;
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.UMT_Array = exports.UMTArrayClass = exports.sum = exports.quickSort = exports.getArraysDiff = exports.getArraysCommon = exports.arraysJoin = void 0;
|
|
16
16
|
const arraysJoin_1 = require("./arraysJoin");
|
|
@@ -25,33 +25,33 @@ const sum_1 = require("./sum");
|
|
|
25
25
|
Object.defineProperty(exports, "sum", { enumerable: true, get: function () { return sum_1.sum; } });
|
|
26
26
|
class UMTArrayClass {
|
|
27
27
|
constructor() {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
__classPrivateFieldSet(this,
|
|
34
|
-
__classPrivateFieldSet(this,
|
|
35
|
-
__classPrivateFieldSet(this,
|
|
36
|
-
__classPrivateFieldSet(this,
|
|
37
|
-
__classPrivateFieldSet(this,
|
|
28
|
+
_UMTArrayClass_Local_arraysJoin.set(this, void 0);
|
|
29
|
+
_UMTArrayClass_Local_getArraysCommon.set(this, void 0);
|
|
30
|
+
_UMTArrayClass_Local_getArraysDiff.set(this, void 0);
|
|
31
|
+
_UMTArrayClass_Local_quickSort.set(this, void 0);
|
|
32
|
+
_UMTArrayClass_Local_sum.set(this, void 0);
|
|
33
|
+
__classPrivateFieldSet(this, _UMTArrayClass_Local_arraysJoin, arraysJoin_1.arraysJoin, "f");
|
|
34
|
+
__classPrivateFieldSet(this, _UMTArrayClass_Local_getArraysCommon, getArraysCommon_1.getArraysCommon, "f");
|
|
35
|
+
__classPrivateFieldSet(this, _UMTArrayClass_Local_getArraysDiff, getArraysDiff_1.getArraysDiff, "f");
|
|
36
|
+
__classPrivateFieldSet(this, _UMTArrayClass_Local_quickSort, quickSort_1.quickSort, "f");
|
|
37
|
+
__classPrivateFieldSet(this, _UMTArrayClass_Local_sum, sum_1.sum, "f");
|
|
38
38
|
}
|
|
39
39
|
get arraysJoin() {
|
|
40
|
-
return __classPrivateFieldGet(this,
|
|
40
|
+
return __classPrivateFieldGet(this, _UMTArrayClass_Local_arraysJoin, "f");
|
|
41
41
|
}
|
|
42
42
|
get getArraysCommon() {
|
|
43
|
-
return __classPrivateFieldGet(this,
|
|
43
|
+
return __classPrivateFieldGet(this, _UMTArrayClass_Local_getArraysCommon, "f");
|
|
44
44
|
}
|
|
45
45
|
get getArraysDiff() {
|
|
46
|
-
return __classPrivateFieldGet(this,
|
|
46
|
+
return __classPrivateFieldGet(this, _UMTArrayClass_Local_getArraysDiff, "f");
|
|
47
47
|
}
|
|
48
48
|
get quickSort() {
|
|
49
|
-
return __classPrivateFieldGet(this,
|
|
49
|
+
return __classPrivateFieldGet(this, _UMTArrayClass_Local_quickSort, "f");
|
|
50
50
|
}
|
|
51
51
|
get sum() {
|
|
52
|
-
return __classPrivateFieldGet(this,
|
|
52
|
+
return __classPrivateFieldGet(this, _UMTArrayClass_Local_sum, "f");
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
exports.UMTArrayClass = UMTArrayClass;
|
|
56
|
-
|
|
56
|
+
_UMTArrayClass_Local_arraysJoin = new WeakMap(), _UMTArrayClass_Local_getArraysCommon = new WeakMap(), _UMTArrayClass_Local_getArraysDiff = new WeakMap(), _UMTArrayClass_Local_quickSort = new WeakMap(), _UMTArrayClass_Local_sum = new WeakMap();
|
|
57
57
|
exports.UMT_Array = new UMTArrayClass();
|
package/module/Date/index.js
CHANGED
|
@@ -10,20 +10,20 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
10
10
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
11
11
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
12
12
|
};
|
|
13
|
-
var
|
|
13
|
+
var _UMTDateClass_Local_now;
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.UMT_Date = exports.UMTDateClass = exports.now = void 0;
|
|
16
16
|
const now_1 = require("./now");
|
|
17
17
|
Object.defineProperty(exports, "now", { enumerable: true, get: function () { return now_1.now; } });
|
|
18
18
|
class UMTDateClass {
|
|
19
19
|
constructor() {
|
|
20
|
-
|
|
21
|
-
__classPrivateFieldSet(this,
|
|
20
|
+
_UMTDateClass_Local_now.set(this, void 0);
|
|
21
|
+
__classPrivateFieldSet(this, _UMTDateClass_Local_now, now_1.now, "f");
|
|
22
22
|
}
|
|
23
23
|
get now() {
|
|
24
|
-
return __classPrivateFieldGet(this,
|
|
24
|
+
return __classPrivateFieldGet(this, _UMTDateClass_Local_now, "f");
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
exports.UMTDateClass = UMTDateClass;
|
|
28
|
-
|
|
28
|
+
_UMTDateClass_Local_now = new WeakMap();
|
|
29
29
|
exports.UMT_Date = new UMTDateClass();
|
package/module/Math/average.js
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.average = void 0;
|
|
4
|
+
const addition_1 = require("./addition");
|
|
5
|
+
const division_1 = require("./division");
|
|
4
6
|
/**
|
|
5
7
|
* 平均値
|
|
6
8
|
* @param {number[]} numbers
|
|
7
9
|
* @returns number
|
|
8
10
|
*/
|
|
9
11
|
const average = (numbers) => {
|
|
10
|
-
const sum = numbers.reduce((a, b) => a
|
|
11
|
-
const avg = sum
|
|
12
|
+
const sum = numbers.reduce((a, b) => (0, addition_1.addition)(a, b), 0);
|
|
13
|
+
const avg = (0, division_1.division)(sum, numbers.length);
|
|
12
14
|
return avg;
|
|
13
15
|
};
|
|
14
16
|
exports.average = average;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.calculatorInitialization = void 0;
|
|
4
|
+
const core_1 = require("./core");
|
|
5
|
+
/**
|
|
6
|
+
* Initializes the calculator.
|
|
7
|
+
* @param {object} exchange - current exchange rate
|
|
8
|
+
* @return {Function} - calculator
|
|
9
|
+
*/
|
|
10
|
+
const calculatorInitialization = (exchange) => {
|
|
11
|
+
/**
|
|
12
|
+
* @param {string} x - amount of money
|
|
13
|
+
* @return {string} - converted amount of money
|
|
14
|
+
*/
|
|
15
|
+
return (x) => (0, core_1.calculatorCore)(x, exchange);
|
|
16
|
+
};
|
|
17
|
+
exports.calculatorInitialization = calculatorInitialization;
|
|
@@ -3,21 +3,33 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.exchange = void 0;
|
|
4
4
|
const isNumber_1 = require("../isNumber");
|
|
5
5
|
const multiplication_1 = require("../multiplication");
|
|
6
|
+
// The function accepts two parameters, the first is n, a string, and the second is props, an object.
|
|
7
|
+
// props is an optional parameter.
|
|
6
8
|
const exchange = (n, props) => {
|
|
9
|
+
// If the props parameter exists, then the following code will be executed.
|
|
7
10
|
if (props) {
|
|
11
|
+
// Loop through the object props.
|
|
8
12
|
for (const i in props) {
|
|
13
|
+
// If the first character of the string n is equal to the key of the current object item,
|
|
14
|
+
// then the following code will be executed.
|
|
9
15
|
if (n[0] == i) {
|
|
16
|
+
// If the value of the current object item is a number, then the following code will be executed.
|
|
10
17
|
if ((0, isNumber_1.isNumber)(props[i])) {
|
|
18
|
+
// Return the result of the multiplication of the number n after the first character and the value of the current object item.
|
|
11
19
|
return String((0, multiplication_1.multiplication)(Number(n.slice(1)), Number(props[i])));
|
|
12
20
|
}
|
|
13
21
|
}
|
|
14
22
|
else {
|
|
23
|
+
// If the first character of the string n is not equal to the key of the current object item,
|
|
24
|
+
// then return the original string n.
|
|
15
25
|
return n;
|
|
16
26
|
}
|
|
17
27
|
}
|
|
28
|
+
// If the string n does not have a corresponding key in the object props, then return the original string n.
|
|
18
29
|
return n;
|
|
19
30
|
}
|
|
20
31
|
else {
|
|
32
|
+
// If the props parameter does not exist, then return the original string n.
|
|
21
33
|
return n;
|
|
22
34
|
}
|
|
23
35
|
};
|
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
* ()や符号に対応
|
|
4
4
|
* 一文字までの方程式に対応
|
|
5
5
|
* @param {string} x
|
|
6
|
-
* @param {object}
|
|
6
|
+
* @param {object} exchange 為替
|
|
7
7
|
*/
|
|
8
|
-
export declare const calculator: <T extends object>(x: string,
|
|
8
|
+
export declare const calculator: <T extends object>(x: string, exchange?: T | undefined) => string;
|
|
@@ -8,15 +8,15 @@ const literalExpression_1 = require("./literalExpression");
|
|
|
8
8
|
* ()や符号に対応
|
|
9
9
|
* 一文字までの方程式に対応
|
|
10
10
|
* @param {string} x
|
|
11
|
-
* @param {object}
|
|
11
|
+
* @param {object} exchange 為替
|
|
12
12
|
*/
|
|
13
|
-
const calculator = (x,
|
|
14
|
-
x = x.replace(/\s+/g, '');
|
|
13
|
+
const calculator = (x, exchange) => {
|
|
14
|
+
x = x.replace(/\s+/g, ''); // Remove spaces
|
|
15
15
|
if (x.indexOf('=') != -1) {
|
|
16
|
-
return (0, literalExpression_1.literalExpression)(x);
|
|
16
|
+
return (0, literalExpression_1.literalExpression)(x); // If the expression contains an equal sign, then it is a literal expression
|
|
17
17
|
}
|
|
18
18
|
else {
|
|
19
|
-
return (0, core_1.calculatorCore)(x,
|
|
19
|
+
return (0, core_1.calculatorCore)(x, exchange);
|
|
20
20
|
}
|
|
21
21
|
};
|
|
22
22
|
exports.calculator = calculator;
|
package/module/Math/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { addition } from './addition';
|
|
2
2
|
import { average } from './average';
|
|
3
3
|
import { calculator } from './calculator';
|
|
4
|
+
import { calculatorInitialization } from './calculator/calculatorInitialization';
|
|
4
5
|
import { degToRad } from './degToRad';
|
|
5
6
|
import { deviationValue } from './deviationValue';
|
|
6
7
|
import { division } from './division';
|
|
@@ -27,7 +28,7 @@ import { radToDeg } from './radToDeg';
|
|
|
27
28
|
import { random } from './random';
|
|
28
29
|
import { reduce } from './reduce';
|
|
29
30
|
import { repeatedTrial } from './repeatedTrial';
|
|
30
|
-
import { roundOf } from './
|
|
31
|
+
import { roundOf } from './roundOf';
|
|
31
32
|
import { softmax } from './softmax';
|
|
32
33
|
import { standardDeviation } from './standardDeviation';
|
|
33
34
|
import { subtract } from './subtract';
|
|
@@ -35,13 +36,14 @@ import { toBinary } from './toBinary';
|
|
|
35
36
|
import { toCelsius } from './toCelsius';
|
|
36
37
|
import { toKelvin } from './toKelvin';
|
|
37
38
|
import { valueSwap } from './valueSwap';
|
|
38
|
-
export { addition, average, calculator, degToRad, deviationValue, division, factorial, factorize, gcd, getDecimalLength, isDouble, isNumber, isPrimeNumber, lcm, mathConverter, mathSeparator, max, min, multiples, multiplication, nCr, nHr, nPr, primeFactorization, quotient, radToDeg, random, reduce, repeatedTrial, roundOf, softmax, standardDeviation, subtract, toBinary, toCelsius, toKelvin, valueSwap, };
|
|
39
|
+
export { addition, average, calculator, calculatorInitialization, degToRad, deviationValue, division, factorial, factorize, gcd, getDecimalLength, isDouble, isNumber, isPrimeNumber, lcm, mathConverter, mathSeparator, max, min, multiples, multiplication, nCr, nHr, nPr, primeFactorization, quotient, radToDeg, random, reduce, repeatedTrial, roundOf, softmax, standardDeviation, subtract, toBinary, toCelsius, toKelvin, valueSwap, };
|
|
39
40
|
export declare class UMTMathClass {
|
|
40
41
|
#private;
|
|
41
42
|
constructor();
|
|
42
43
|
get addition(): (x: number, y: number) => number;
|
|
43
44
|
get average(): (numbers: number[]) => number;
|
|
44
|
-
get calculator(): <T extends object>(x: string,
|
|
45
|
+
get calculator(): <T extends object>(x: string, exchange?: T | undefined) => string;
|
|
46
|
+
get calculatorInitialization(): <T extends object>(exchange: T) => (x: string) => string;
|
|
45
47
|
get degToRad(): (x: number) => number;
|
|
46
48
|
get deviationValue(): (value: number, averageValue: number, standardDeviationValue: number) => number;
|
|
47
49
|
get division(): import("./division").DIVISION;
|
|
@@ -89,6 +91,6 @@ export declare class UMTMathClass {
|
|
|
89
91
|
get toBinary(): import("./toBinary").TOBINARY;
|
|
90
92
|
get toCelsius(): (kelvin: number) => number;
|
|
91
93
|
get toKelvin(): (celsius: number) => number;
|
|
92
|
-
get valueSwap(): (x: number, y: number) => number
|
|
94
|
+
get valueSwap(): (x: number, y: number) => [number, number];
|
|
93
95
|
}
|
|
94
96
|
export declare const UMT_Math: UMTMathClass;
|