Skip to content

Commit 8194e20

Browse files
fix(BigInt): use only BigInt()
1 parent 8d10fbb commit 8194e20

File tree

3 files changed

+13
-15
lines changed

3 files changed

+13
-15
lines changed

src/lib/constants/array.const.ts

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
// Constant.
2-
import {
3-
TESTING_BIGINT,
4-
TESTING_BIGINT_CONSTRUCTOR,
5-
} from './big-int.const';
2+
import { TESTING_BIGINT } from './big-int.const';
63
import { TestingClass } from './class.const';
74
import {
85
TESTING_FALSE,
@@ -24,8 +21,12 @@ import {
2421
import { TESTING_UNDEFINED } from './undefined.const';
2522
import { TESTING_NOT_DEFINED } from '../variable/not-defined.variable';
2623
// Interface.
27-
import { TestingObjectOne } from '../../interface';
28-
import { TESTING_FUNCTION, TESTING_FUNCTION_CONSTRUCTOR, TESTING_FUNCTION_CONSTRUCTOR_PERSON } from './function.const';
24+
import { TestingObject } from '../../interface/object.interface';
25+
import {
26+
TESTING_FUNCTION,
27+
TESTING_FUNCTION_CONSTRUCTOR,
28+
TESTING_FUNCTION_CONSTRUCTOR_PERSON,
29+
} from './function.const';
2930
import { TESTING_SYMBOL_NUMBER, TESTING_SYMBOL_STRING } from './symbol.const';
3031
/**
3132
* An `Array` of `bigint`.
@@ -36,7 +37,7 @@ import { TESTING_SYMBOL_NUMBER, TESTING_SYMBOL_STRING } from './symbol.const';
3637
*/
3738
export const TESTING_ARRAY_BIGINT = [
3839
TESTING_BIGINT,
39-
TESTING_BIGINT_CONSTRUCTOR,
40+
TESTING_BIGINT,
4041
9007199254740991n,
4142
];
4243

@@ -64,10 +65,7 @@ export const TESTING_ARRAY_BOOLEAN = [
6465
* typeOf(): "array"
6566
* typeof: "object"
6667
*/
67-
export const TESTING_ARRAY_CLASS = [
68-
new TestingClass(),
69-
new TestingClass(),
70-
];
68+
export const TESTING_ARRAY_CLASS = [new TestingClass(), new TestingClass()];
7169

7270
/**
7371
* An `Array` of `function`.
@@ -127,7 +125,7 @@ export const TESTING_ARRAY_NUMBER = [
127125
* typeOf(): "array"
128126
* typeof: "object"
129127
*/
130-
export const TESTING_ARRAY_OBJECT_ONE: Array<TestingObjectOne> = [
128+
export const TESTING_ARRAY_OBJECT_ONE: Array<TestingObject> = [
131129
{ [TESTING_NUMBER]: 'my number', x: 3000 },
132130
{ [TESTING_NUMBER]: 'my number', x: 1 },
133131
];

src/lib/constants/big-int.const.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
* typeOf(): "bigint"
33
* typeof: "bigint"
44
*/
5-
export const TESTING_BIGINT = 9007199254740991n;
5+
// export const TESTING_BIGINT = 9007199254740991n;
66

77
/**
88
* typeOf(): "bigint"
99
* typeof: "bigint"
1010
*/
11-
export const TESTING_BIGINT_CONSTRUCTOR = BigInt('9007199254740991'); // typeof === 'bigint'
11+
export const TESTING_BIGINT = BigInt('9007199254740991'); // typeof === 'bigint'

src/lib/constants/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export {
1212
TESTING_ARRAY_UNDEFINED,
1313
} from './array.const';
1414

15-
export { TESTING_BIGINT, TESTING_BIGINT_CONSTRUCTOR } from './big-int.const';
15+
export { TESTING_BIGINT } from './big-int.const';
1616

1717
export {
1818
TESTING_FALSE,

0 commit comments

Comments
 (0)