umt 2.1.0 → 2.1.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.
- package/module/Consts/httpStatus/httpClientErrorStatus.d.ts +28 -0
- package/module/Consts/httpStatus/httpClientErrorStatus.js +27 -0
- package/module/Consts/httpStatus/httpClientErrorStatus.js.map +1 -0
- package/module/Consts/httpStatus/httpInformationalStatus.d.ts +8 -0
- package/module/Consts/httpStatus/httpInformationalStatus.js +7 -0
- package/module/Consts/httpStatus/httpInformationalStatus.js.map +1 -0
- package/module/Consts/httpStatus/httpRedirectionStatus.d.ts +11 -0
- package/module/Consts/httpStatus/httpRedirectionStatus.js +10 -0
- package/module/Consts/httpStatus/httpRedirectionStatus.js.map +1 -0
- package/module/Consts/httpStatus/httpServerErrorStatus.d.ts +10 -0
- package/module/Consts/httpStatus/httpServerErrorStatus.js +9 -0
- package/module/Consts/httpStatus/httpServerErrorStatus.js.map +1 -0
- package/module/Consts/httpStatus/httpSuccessStatus.d.ts +11 -0
- package/module/Consts/httpStatus/httpSuccessStatus.js +10 -0
- package/module/Consts/httpStatus/httpSuccessStatus.js.map +1 -0
- package/module/Consts/httpStatus/index.d.ts +57 -0
- package/module/Consts/httpStatus/index.js +18 -0
- package/module/Consts/httpStatus/index.js.map +1 -0
- package/module/Consts/index.d.ts +1 -0
- package/module/Consts/index.js +1 -0
- package/module/Consts/index.js.map +1 -1
- package/module/IP/index.d.ts +1 -0
- package/module/IP/index.js +1 -0
- package/module/IP/index.js.map +1 -1
- package/module/Math/index.d.ts +1 -0
- package/module/Math/index.js +1 -0
- package/module/Math/index.js.map +1 -1
- package/module/String/index.d.ts +2 -1
- package/module/String/index.js +2 -1
- package/module/String/index.js.map +1 -1
- package/module/Time/convertTime.d.ts +2 -1
- package/module/Time/convertTime.js +5 -2
- package/module/Time/convertTime.js.map +1 -1
- package/module/Time/index.d.ts +1 -0
- package/module/Time/index.js +1 -0
- package/module/Time/index.js.map +1 -1
- package/module/Time/normalizeTimeUnit.d.ts +10 -0
- package/module/Time/normalizeTimeUnit.js +14 -0
- package/module/Time/normalizeTimeUnit.js.map +1 -0
- package/module/Unit/index.d.ts +1 -0
- package/module/Unit/index.js +2 -0
- package/module/Unit/index.js.map +1 -0
- package/module/Unit/unitConverterInitialization.d.ts +1 -0
- package/module/Unit/unitConverterInitialization.js +4 -0
- package/module/Unit/unitConverterInitialization.js.map +1 -0
- package/module/Validate/index.d.ts +2 -1
- package/module/Validate/index.js +2 -1
- package/module/Validate/index.js.map +1 -1
- package/module/Validate/isDictionaryObject.d.ts +10 -0
- package/module/Validate/isDictionaryObject.js +11 -0
- package/module/Validate/isDictionaryObject.js.map +1 -0
- package/module/Validate/isEqual.d.ts +23 -0
- package/module/Validate/isEqual.js +24 -0
- package/module/Validate/isEqual.js.map +1 -0
- package/module/Validate/object/core.js +2 -2
- package/module/Validate/object/core.js.map +1 -1
- package/module/es5/Consts/httpStatus/httpClientErrorStatus.d.ts +28 -0
- package/module/es5/Consts/httpStatus/httpClientErrorStatus.js +32 -0
- package/module/es5/Consts/httpStatus/httpInformationalStatus.d.ts +8 -0
- package/module/es5/Consts/httpStatus/httpInformationalStatus.js +12 -0
- package/module/es5/Consts/httpStatus/httpRedirectionStatus.d.ts +11 -0
- package/module/es5/Consts/httpStatus/httpRedirectionStatus.js +15 -0
- package/module/es5/Consts/httpStatus/httpServerErrorStatus.d.ts +10 -0
- package/module/es5/Consts/httpStatus/httpServerErrorStatus.js +14 -0
- package/module/es5/Consts/httpStatus/httpSuccessStatus.d.ts +11 -0
- package/module/es5/Consts/httpStatus/httpSuccessStatus.js +15 -0
- package/module/es5/Consts/httpStatus/index.d.ts +57 -0
- package/module/es5/Consts/httpStatus/index.js +48 -0
- package/module/es5/Consts/index.d.ts +1 -0
- package/module/es5/Consts/index.js +11 -0
- package/module/es5/IP/index.d.ts +1 -0
- package/module/es5/IP/index.js +11 -0
- package/module/es5/Math/index.d.ts +1 -0
- package/module/es5/Math/index.js +11 -0
- package/module/es5/String/index.d.ts +2 -1
- package/module/es5/String/index.js +22 -11
- package/module/es5/Time/convertTime.d.ts +2 -1
- package/module/es5/Time/convertTime.js +5 -2
- package/module/es5/Time/index.d.ts +1 -0
- package/module/es5/Time/index.js +11 -0
- package/module/es5/Time/normalizeTimeUnit.d.ts +10 -0
- package/module/es5/Time/normalizeTimeUnit.js +51 -0
- package/module/es5/Unit/index.d.ts +1 -0
- package/module/es5/Unit/index.js +16 -0
- package/module/es5/Unit/unitConverterInitialization.d.ts +1 -0
- package/module/es5/Unit/unitConverterInitialization.js +13 -0
- package/module/es5/Validate/index.d.ts +2 -1
- package/module/es5/Validate/index.js +22 -11
- package/module/es5/Validate/isDictionaryObject.d.ts +10 -0
- package/module/es5/Validate/{isObject.js → isDictionaryObject.js} +6 -6
- package/module/es5/Validate/isEqual.d.ts +23 -0
- package/module/es5/Validate/isEqual.js +31 -0
- package/module/es5/Validate/object/core.js +2 -2
- package/module/es5/index.d.ts +1 -0
- package/module/es5/index.js +11 -0
- package/module/es5/tests/unit/Consts/clock.test.js +12 -12
- package/module/es5/tests/unit/Consts/httpClientErrorStatus.test.js +33 -0
- package/module/es5/tests/unit/Consts/httpInformationalStatus.test.d.ts +1 -0
- package/module/es5/tests/unit/Consts/httpInformationalStatus.test.js +13 -0
- package/module/es5/tests/unit/Consts/httpRedirectionStatus.test.d.ts +1 -0
- package/module/es5/tests/unit/Consts/httpRedirectionStatus.test.js +16 -0
- package/module/es5/tests/unit/Consts/httpServerErrorStatus.test.d.ts +1 -0
- package/module/es5/tests/unit/Consts/httpServerErrorStatus.test.js +15 -0
- package/module/es5/tests/unit/Consts/httpStatus.test.d.ts +1 -0
- package/module/es5/tests/unit/Consts/httpStatus.test.js +73 -0
- package/module/es5/tests/unit/Consts/httpSuccessStatus.test.d.ts +1 -0
- package/module/es5/tests/unit/Consts/httpSuccessStatus.test.js +16 -0
- package/module/es5/tests/unit/Time/convertTime.test.js +99 -1
- package/module/es5/tests/unit/Time/normalizeTimeUnit.test.d.ts +1 -0
- package/module/es5/tests/unit/Time/normalizeTimeUnit.test.js +29 -0
- package/module/es5/tests/unit/Unit/unitConverterInitialization.test.d.ts +1 -0
- package/module/es5/tests/unit/Unit/unitConverterInitialization.test.js +38 -0
- package/module/es5/tests/unit/Validate/isDictionaryObject.test.d.ts +1 -0
- package/module/es5/tests/unit/Validate/{isObject.test.js → isDictionaryObject.test.js} +11 -11
- package/module/es5/tests/unit/Validate/isEqual.test.d.ts +1 -0
- package/module/es5/tests/unit/Validate/isEqual.test.js +74 -0
- package/module/es5/tsconfig.tsbuildinfo +1 -1
- package/module/es5/types/enum/getEnumValues.d.ts +1 -0
- package/module/es5/types/enum/getEnumValues.js +5 -0
- package/module/es5/types/enum/index.d.ts +1 -0
- package/module/es5/types/enum/index.js +16 -0
- package/module/es5/types/index.d.ts +1 -0
- package/module/es5/types/index.js +11 -0
- package/module/es5/types/object/index.d.ts +1 -0
- package/module/es5/types/object/index.js +11 -0
- package/module/es5/types/time/index.d.ts +1 -0
- package/module/es5/types/time/index.js +11 -0
- package/module/es5/types/time/timeUnitShort.d.ts +4 -0
- package/module/es5/types/time/timeUnitShort.js +5 -0
- package/module/index.d.ts +1 -0
- package/module/index.js +1 -0
- package/module/index.js.map +1 -1
- package/module/types/enum/getEnumValues.d.ts +1 -0
- package/module/types/enum/getEnumValues.js +2 -0
- package/module/types/enum/getEnumValues.js.map +1 -0
- package/module/types/enum/index.d.ts +1 -0
- package/module/types/enum/index.js +2 -0
- package/module/types/enum/index.js.map +1 -0
- package/module/types/index.d.ts +1 -0
- package/module/types/index.js +1 -0
- package/module/types/index.js.map +1 -1
- package/module/types/object/index.d.ts +1 -0
- package/module/types/object/index.js +1 -0
- package/module/types/object/index.js.map +1 -1
- package/module/types/time/index.d.ts +1 -0
- package/module/types/time/index.js +1 -0
- package/module/types/time/index.js.map +1 -1
- package/module/types/time/timeUnitShort.d.ts +4 -0
- package/module/types/time/timeUnitShort.js +2 -0
- package/module/types/time/timeUnitShort.js.map +1 -0
- package/package.json +14 -14
- package/module/Validate/isObject.d.ts +0 -10
- package/module/Validate/isObject.js +0 -11
- package/module/Validate/isObject.js.map +0 -1
- package/module/es5/Validate/isObject.d.ts +0 -10
- /package/module/es5/tests/unit/{Validate/isObject.test.d.ts → Consts/httpClientErrorStatus.test.d.ts} +0 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { GetEnumValues } from "$/enum/getEnumValues";
|
|
2
|
+
export declare const HttpClientErrorStatus: {
|
|
3
|
+
readonly BAD_REQUEST: 400;
|
|
4
|
+
readonly UNAUTHORIZED: 401;
|
|
5
|
+
readonly PAYMENT_REQUIRED: 402;
|
|
6
|
+
readonly FORBIDDEN: 403;
|
|
7
|
+
readonly NOT_FOUND: 404;
|
|
8
|
+
readonly METHOD_NOT_ALLOWED: 405;
|
|
9
|
+
readonly NOT_ACCEPTABLE: 406;
|
|
10
|
+
readonly PROXY_AUTHENTICATION_REQUIRED: 407;
|
|
11
|
+
readonly REQUEST_TIMEOUT: 408;
|
|
12
|
+
readonly CONFLICT: 409;
|
|
13
|
+
readonly GONE: 410;
|
|
14
|
+
readonly LENGTH_REQUIRED: 411;
|
|
15
|
+
readonly PRECONDITION_FAILED: 412;
|
|
16
|
+
readonly PAYLOAD_TOO_LARGE: 413;
|
|
17
|
+
readonly URI_TOO_LONG: 414;
|
|
18
|
+
readonly UNSUPPORTED_MEDIA_TYPE: 415;
|
|
19
|
+
readonly REQUESTED_RANGE_NOT_SATISFIABLE: 416;
|
|
20
|
+
readonly EXPECTATION_FAILED: 417;
|
|
21
|
+
readonly I_AM_A_TEAPOT: 418;
|
|
22
|
+
readonly MISDIRECTED: 421;
|
|
23
|
+
readonly UNPROCESSABLE_ENTITY: 422;
|
|
24
|
+
readonly FAILED_DEPENDENCY: 424;
|
|
25
|
+
readonly PRECONDITION_REQUIRED: 428;
|
|
26
|
+
readonly TOO_MANY_REQUESTS: 429;
|
|
27
|
+
};
|
|
28
|
+
export type HttpClientErrorStatus = GetEnumValues<typeof HttpClientErrorStatus>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.HttpClientErrorStatus = void 0;
|
|
7
|
+
var HttpClientErrorStatus = exports.HttpClientErrorStatus = {
|
|
8
|
+
BAD_REQUEST: 400,
|
|
9
|
+
UNAUTHORIZED: 401,
|
|
10
|
+
PAYMENT_REQUIRED: 402,
|
|
11
|
+
FORBIDDEN: 403,
|
|
12
|
+
NOT_FOUND: 404,
|
|
13
|
+
METHOD_NOT_ALLOWED: 405,
|
|
14
|
+
NOT_ACCEPTABLE: 406,
|
|
15
|
+
PROXY_AUTHENTICATION_REQUIRED: 407,
|
|
16
|
+
REQUEST_TIMEOUT: 408,
|
|
17
|
+
CONFLICT: 409,
|
|
18
|
+
GONE: 410,
|
|
19
|
+
LENGTH_REQUIRED: 411,
|
|
20
|
+
PRECONDITION_FAILED: 412,
|
|
21
|
+
PAYLOAD_TOO_LARGE: 413,
|
|
22
|
+
URI_TOO_LONG: 414,
|
|
23
|
+
UNSUPPORTED_MEDIA_TYPE: 415,
|
|
24
|
+
REQUESTED_RANGE_NOT_SATISFIABLE: 416,
|
|
25
|
+
EXPECTATION_FAILED: 417,
|
|
26
|
+
I_AM_A_TEAPOT: 418,
|
|
27
|
+
MISDIRECTED: 421,
|
|
28
|
+
UNPROCESSABLE_ENTITY: 422,
|
|
29
|
+
FAILED_DEPENDENCY: 424,
|
|
30
|
+
PRECONDITION_REQUIRED: 428,
|
|
31
|
+
TOO_MANY_REQUESTS: 429
|
|
32
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { GetEnumValues } from "$/enum/getEnumValues";
|
|
2
|
+
export declare const HttpInformationalStatus: {
|
|
3
|
+
readonly CONTINUE: 100;
|
|
4
|
+
readonly SWITCHING_PROTOCOLS: 101;
|
|
5
|
+
readonly PROCESSING: 102;
|
|
6
|
+
readonly EARLYHINTS: 103;
|
|
7
|
+
};
|
|
8
|
+
export type HttpInformationalStatus = GetEnumValues<typeof HttpInformationalStatus>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.HttpInformationalStatus = void 0;
|
|
7
|
+
var HttpInformationalStatus = exports.HttpInformationalStatus = {
|
|
8
|
+
CONTINUE: 100,
|
|
9
|
+
SWITCHING_PROTOCOLS: 101,
|
|
10
|
+
PROCESSING: 102,
|
|
11
|
+
EARLYHINTS: 103
|
|
12
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { GetEnumValues } from "$/enum/getEnumValues";
|
|
2
|
+
export declare const HttpRedirectionStatus: {
|
|
3
|
+
readonly AMBIGUOUS: 300;
|
|
4
|
+
readonly MOVED_PERMANENTLY: 301;
|
|
5
|
+
readonly FOUND: 302;
|
|
6
|
+
readonly SEE_OTHER: 303;
|
|
7
|
+
readonly NOT_MODIFIED: 304;
|
|
8
|
+
readonly TEMPORARY_REDIRECT: 307;
|
|
9
|
+
readonly PERMANENT_REDIRECT: 308;
|
|
10
|
+
};
|
|
11
|
+
export type HttpRedirectionStatus = GetEnumValues<typeof HttpRedirectionStatus>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.HttpRedirectionStatus = void 0;
|
|
7
|
+
var HttpRedirectionStatus = exports.HttpRedirectionStatus = {
|
|
8
|
+
AMBIGUOUS: 300,
|
|
9
|
+
MOVED_PERMANENTLY: 301,
|
|
10
|
+
FOUND: 302,
|
|
11
|
+
SEE_OTHER: 303,
|
|
12
|
+
NOT_MODIFIED: 304,
|
|
13
|
+
TEMPORARY_REDIRECT: 307,
|
|
14
|
+
PERMANENT_REDIRECT: 308
|
|
15
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { GetEnumValues } from "$/enum/getEnumValues";
|
|
2
|
+
export declare const HttpServerErrorStatus: {
|
|
3
|
+
readonly INTERNAL_SERVER_ERROR: 500;
|
|
4
|
+
readonly NOT_IMPLEMENTED: 501;
|
|
5
|
+
readonly BAD_GATEWAY: 502;
|
|
6
|
+
readonly SERVICE_UNAVAILABLE: 503;
|
|
7
|
+
readonly GATEWAY_TIMEOUT: 504;
|
|
8
|
+
readonly HTTP_VERSION_NOT_SUPPORTED: 505;
|
|
9
|
+
};
|
|
10
|
+
export type HttpServerErrorStatus = GetEnumValues<typeof HttpServerErrorStatus>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.HttpServerErrorStatus = void 0;
|
|
7
|
+
var HttpServerErrorStatus = exports.HttpServerErrorStatus = {
|
|
8
|
+
INTERNAL_SERVER_ERROR: 500,
|
|
9
|
+
NOT_IMPLEMENTED: 501,
|
|
10
|
+
BAD_GATEWAY: 502,
|
|
11
|
+
SERVICE_UNAVAILABLE: 503,
|
|
12
|
+
GATEWAY_TIMEOUT: 504,
|
|
13
|
+
HTTP_VERSION_NOT_SUPPORTED: 505
|
|
14
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { GetEnumValues } from "$/enum/getEnumValues";
|
|
2
|
+
export declare const HttpSuccessStatus: {
|
|
3
|
+
readonly OK: 200;
|
|
4
|
+
readonly CREATED: 201;
|
|
5
|
+
readonly ACCEPTED: 202;
|
|
6
|
+
readonly NON_AUTHORITATIVE_INFORMATION: 203;
|
|
7
|
+
readonly NO_CONTENT: 204;
|
|
8
|
+
readonly RESET_CONTENT: 205;
|
|
9
|
+
readonly PARTIAL_CONTENT: 206;
|
|
10
|
+
};
|
|
11
|
+
export type HttpSuccessStatus = GetEnumValues<typeof HttpSuccessStatus>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.HttpSuccessStatus = void 0;
|
|
7
|
+
var HttpSuccessStatus = exports.HttpSuccessStatus = {
|
|
8
|
+
OK: 200,
|
|
9
|
+
CREATED: 201,
|
|
10
|
+
ACCEPTED: 202,
|
|
11
|
+
NON_AUTHORITATIVE_INFORMATION: 203,
|
|
12
|
+
NO_CONTENT: 204,
|
|
13
|
+
RESET_CONTENT: 205,
|
|
14
|
+
PARTIAL_CONTENT: 206
|
|
15
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import type { GetEnumValues } from "$/enum/getEnumValues";
|
|
2
|
+
export declare const HttpStatus: {
|
|
3
|
+
readonly INTERNAL_SERVER_ERROR: 500;
|
|
4
|
+
readonly NOT_IMPLEMENTED: 501;
|
|
5
|
+
readonly BAD_GATEWAY: 502;
|
|
6
|
+
readonly SERVICE_UNAVAILABLE: 503;
|
|
7
|
+
readonly GATEWAY_TIMEOUT: 504;
|
|
8
|
+
readonly HTTP_VERSION_NOT_SUPPORTED: 505;
|
|
9
|
+
readonly BAD_REQUEST: 400;
|
|
10
|
+
readonly UNAUTHORIZED: 401;
|
|
11
|
+
readonly PAYMENT_REQUIRED: 402;
|
|
12
|
+
readonly FORBIDDEN: 403;
|
|
13
|
+
readonly NOT_FOUND: 404;
|
|
14
|
+
readonly METHOD_NOT_ALLOWED: 405;
|
|
15
|
+
readonly NOT_ACCEPTABLE: 406;
|
|
16
|
+
readonly PROXY_AUTHENTICATION_REQUIRED: 407;
|
|
17
|
+
readonly REQUEST_TIMEOUT: 408;
|
|
18
|
+
readonly CONFLICT: 409;
|
|
19
|
+
readonly GONE: 410;
|
|
20
|
+
readonly LENGTH_REQUIRED: 411;
|
|
21
|
+
readonly PRECONDITION_FAILED: 412;
|
|
22
|
+
readonly PAYLOAD_TOO_LARGE: 413;
|
|
23
|
+
readonly URI_TOO_LONG: 414;
|
|
24
|
+
readonly UNSUPPORTED_MEDIA_TYPE: 415;
|
|
25
|
+
readonly REQUESTED_RANGE_NOT_SATISFIABLE: 416;
|
|
26
|
+
readonly EXPECTATION_FAILED: 417;
|
|
27
|
+
readonly I_AM_A_TEAPOT: 418;
|
|
28
|
+
readonly MISDIRECTED: 421;
|
|
29
|
+
readonly UNPROCESSABLE_ENTITY: 422;
|
|
30
|
+
readonly FAILED_DEPENDENCY: 424;
|
|
31
|
+
readonly PRECONDITION_REQUIRED: 428;
|
|
32
|
+
readonly TOO_MANY_REQUESTS: 429;
|
|
33
|
+
readonly AMBIGUOUS: 300;
|
|
34
|
+
readonly MOVED_PERMANENTLY: 301;
|
|
35
|
+
readonly FOUND: 302;
|
|
36
|
+
readonly SEE_OTHER: 303;
|
|
37
|
+
readonly NOT_MODIFIED: 304;
|
|
38
|
+
readonly TEMPORARY_REDIRECT: 307;
|
|
39
|
+
readonly PERMANENT_REDIRECT: 308;
|
|
40
|
+
readonly OK: 200;
|
|
41
|
+
readonly CREATED: 201;
|
|
42
|
+
readonly ACCEPTED: 202;
|
|
43
|
+
readonly NON_AUTHORITATIVE_INFORMATION: 203;
|
|
44
|
+
readonly NO_CONTENT: 204;
|
|
45
|
+
readonly RESET_CONTENT: 205;
|
|
46
|
+
readonly PARTIAL_CONTENT: 206;
|
|
47
|
+
readonly CONTINUE: 100;
|
|
48
|
+
readonly SWITCHING_PROTOCOLS: 101;
|
|
49
|
+
readonly PROCESSING: 102;
|
|
50
|
+
readonly EARLYHINTS: 103;
|
|
51
|
+
};
|
|
52
|
+
export type HttpStatus = GetEnumValues<typeof HttpStatus>;
|
|
53
|
+
export { HttpClientErrorStatus } from "@/Consts/httpStatus/httpClientErrorStatus";
|
|
54
|
+
export { HttpInformationalStatus } from "@/Consts/httpStatus/httpInformationalStatus";
|
|
55
|
+
export { HttpRedirectionStatus } from "@/Consts/httpStatus/httpRedirectionStatus";
|
|
56
|
+
export { HttpServerErrorStatus } from "@/Consts/httpStatus/httpServerErrorStatus";
|
|
57
|
+
export { HttpSuccessStatus } from "@/Consts/httpStatus/httpSuccessStatus";
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "HttpClientErrorStatus", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _httpClientErrorStatus.HttpClientErrorStatus;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "HttpInformationalStatus", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function get() {
|
|
15
|
+
return _httpInformationalStatus.HttpInformationalStatus;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "HttpRedirectionStatus", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function get() {
|
|
21
|
+
return _httpRedirectionStatus.HttpRedirectionStatus;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(exports, "HttpServerErrorStatus", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function get() {
|
|
27
|
+
return _httpServerErrorStatus.HttpServerErrorStatus;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
exports.HttpStatus = void 0;
|
|
31
|
+
Object.defineProperty(exports, "HttpSuccessStatus", {
|
|
32
|
+
enumerable: true,
|
|
33
|
+
get: function get() {
|
|
34
|
+
return _httpSuccessStatus.HttpSuccessStatus;
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
var _httpClientErrorStatus = require("@/Consts/httpStatus/httpClientErrorStatus");
|
|
38
|
+
var _httpInformationalStatus = require("@/Consts/httpStatus/httpInformationalStatus");
|
|
39
|
+
var _httpRedirectionStatus = require("@/Consts/httpStatus/httpRedirectionStatus");
|
|
40
|
+
var _httpServerErrorStatus = require("@/Consts/httpStatus/httpServerErrorStatus");
|
|
41
|
+
var _httpSuccessStatus = require("@/Consts/httpStatus/httpSuccessStatus");
|
|
42
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
43
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
44
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
45
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
46
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
47
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
48
|
+
var HttpStatus = exports.HttpStatus = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, _httpInformationalStatus.HttpInformationalStatus), _httpSuccessStatus.HttpSuccessStatus), _httpRedirectionStatus.HttpRedirectionStatus), _httpClientErrorStatus.HttpClientErrorStatus), _httpServerErrorStatus.HttpServerErrorStatus);
|
|
@@ -13,4 +13,15 @@ Object.keys(_clock).forEach(function (key) {
|
|
|
13
13
|
return _clock[key];
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
|
+
});
|
|
17
|
+
var _httpStatus = require("./httpStatus");
|
|
18
|
+
Object.keys(_httpStatus).forEach(function (key) {
|
|
19
|
+
if (key === "default" || key === "__esModule") return;
|
|
20
|
+
if (key in exports && exports[key] === _httpStatus[key]) return;
|
|
21
|
+
Object.defineProperty(exports, key, {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function get() {
|
|
24
|
+
return _httpStatus[key];
|
|
25
|
+
}
|
|
26
|
+
});
|
|
16
27
|
});
|
package/module/es5/IP/index.d.ts
CHANGED
package/module/es5/IP/index.js
CHANGED
|
@@ -80,6 +80,17 @@ Object.keys(_isInRange).forEach(function (key) {
|
|
|
80
80
|
}
|
|
81
81
|
});
|
|
82
82
|
});
|
|
83
|
+
var _isPrivateIp = require("./isPrivateIp");
|
|
84
|
+
Object.keys(_isPrivateIp).forEach(function (key) {
|
|
85
|
+
if (key === "default" || key === "__esModule") return;
|
|
86
|
+
if (key in exports && exports[key] === _isPrivateIp[key]) return;
|
|
87
|
+
Object.defineProperty(exports, key, {
|
|
88
|
+
enumerable: true,
|
|
89
|
+
get: function get() {
|
|
90
|
+
return _isPrivateIp[key];
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
});
|
|
83
94
|
var _longToIp = require("./longToIp");
|
|
84
95
|
Object.keys(_longToIp).forEach(function (key) {
|
|
85
96
|
if (key === "default" || key === "__esModule") return;
|
package/module/es5/Math/index.js
CHANGED
|
@@ -410,6 +410,17 @@ Object.keys(_toKelvin).forEach(function (key) {
|
|
|
410
410
|
}
|
|
411
411
|
});
|
|
412
412
|
});
|
|
413
|
+
var _uuidv = require("./uuidv7");
|
|
414
|
+
Object.keys(_uuidv).forEach(function (key) {
|
|
415
|
+
if (key === "default" || key === "__esModule") return;
|
|
416
|
+
if (key in exports && exports[key] === _uuidv[key]) return;
|
|
417
|
+
Object.defineProperty(exports, key, {
|
|
418
|
+
enumerable: true,
|
|
419
|
+
get: function get() {
|
|
420
|
+
return _uuidv[key];
|
|
421
|
+
}
|
|
422
|
+
});
|
|
423
|
+
});
|
|
413
424
|
var _valueSwap = require("./valueSwap");
|
|
414
425
|
Object.keys(_valueSwap).forEach(function (key) {
|
|
415
426
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
export * from "./deleteSpaces";
|
|
2
2
|
export * from "./formatString";
|
|
3
3
|
export * from "./fromBase64";
|
|
4
|
+
export * from "./hasNoLetters";
|
|
4
5
|
export * from "./padEnd";
|
|
5
6
|
export * from "./padStart";
|
|
6
7
|
export * from "./randomString";
|
|
7
8
|
export * from "./randomStringInitialization";
|
|
8
9
|
export * from "./reverseString";
|
|
9
10
|
export * from "./toBase64";
|
|
11
|
+
export * from "./toHalfWidth";
|
|
10
12
|
export * from "./trimCharacters";
|
|
11
13
|
export * from "./trimEndCharacters";
|
|
12
14
|
export * from "./trimStartCharacters";
|
|
13
|
-
export * from "./hasNoLetters";
|
|
@@ -36,6 +36,17 @@ Object.keys(_fromBase).forEach(function (key) {
|
|
|
36
36
|
}
|
|
37
37
|
});
|
|
38
38
|
});
|
|
39
|
+
var _hasNoLetters = require("./hasNoLetters");
|
|
40
|
+
Object.keys(_hasNoLetters).forEach(function (key) {
|
|
41
|
+
if (key === "default" || key === "__esModule") return;
|
|
42
|
+
if (key in exports && exports[key] === _hasNoLetters[key]) return;
|
|
43
|
+
Object.defineProperty(exports, key, {
|
|
44
|
+
enumerable: true,
|
|
45
|
+
get: function get() {
|
|
46
|
+
return _hasNoLetters[key];
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
});
|
|
39
50
|
var _padEnd = require("./padEnd");
|
|
40
51
|
Object.keys(_padEnd).forEach(function (key) {
|
|
41
52
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -102,6 +113,17 @@ Object.keys(_toBase).forEach(function (key) {
|
|
|
102
113
|
}
|
|
103
114
|
});
|
|
104
115
|
});
|
|
116
|
+
var _toHalfWidth = require("./toHalfWidth");
|
|
117
|
+
Object.keys(_toHalfWidth).forEach(function (key) {
|
|
118
|
+
if (key === "default" || key === "__esModule") return;
|
|
119
|
+
if (key in exports && exports[key] === _toHalfWidth[key]) return;
|
|
120
|
+
Object.defineProperty(exports, key, {
|
|
121
|
+
enumerable: true,
|
|
122
|
+
get: function get() {
|
|
123
|
+
return _toHalfWidth[key];
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
});
|
|
105
127
|
var _trimCharacters = require("./trimCharacters");
|
|
106
128
|
Object.keys(_trimCharacters).forEach(function (key) {
|
|
107
129
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -134,15 +156,4 @@ Object.keys(_trimStartCharacters).forEach(function (key) {
|
|
|
134
156
|
return _trimStartCharacters[key];
|
|
135
157
|
}
|
|
136
158
|
});
|
|
137
|
-
});
|
|
138
|
-
var _hasNoLetters = require("./hasNoLetters");
|
|
139
|
-
Object.keys(_hasNoLetters).forEach(function (key) {
|
|
140
|
-
if (key === "default" || key === "__esModule") return;
|
|
141
|
-
if (key in exports && exports[key] === _hasNoLetters[key]) return;
|
|
142
|
-
Object.defineProperty(exports, key, {
|
|
143
|
-
enumerable: true,
|
|
144
|
-
get: function get() {
|
|
145
|
-
return _hasNoLetters[key];
|
|
146
|
-
}
|
|
147
|
-
});
|
|
148
159
|
});
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { TimeUnit } from "$/time/timeUnit";
|
|
2
|
+
import type { TimeUnitShort } from "$/time/timeUnitShort";
|
|
2
3
|
/**
|
|
3
4
|
* 時間を変換する関数
|
|
4
5
|
* @param value 変換する値(文字列)
|
|
@@ -7,4 +8,4 @@ import type { TimeUnit } from "$/time/timeUnit";
|
|
|
7
8
|
* @returns 変換後の値(数値)
|
|
8
9
|
* @throws {Error} 無効な数値入力の場合
|
|
9
10
|
*/
|
|
10
|
-
export declare const convertTime: (value: string | number, fromUnit: TimeUnit, toUnit: TimeUnit) => number;
|
|
11
|
+
export declare const convertTime: (value: string | number, fromUnit: TimeUnit | TimeUnitShort, toUnit: TimeUnit | TimeUnitShort) => number;
|
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.convertTime = void 0;
|
|
7
|
+
var _normalizeTimeUnit = require("@/Time/normalizeTimeUnit");
|
|
7
8
|
/**
|
|
8
9
|
* 時間単位間の変換率を定義
|
|
9
10
|
*/
|
|
@@ -24,6 +25,8 @@ var conversionRates = {
|
|
|
24
25
|
*/
|
|
25
26
|
var convertTime = exports.convertTime = function convertTime(value, fromUnit, toUnit) {
|
|
26
27
|
var numericValue = typeof value === "string" ? Number.parseFloat(value) : value;
|
|
27
|
-
var
|
|
28
|
-
|
|
28
|
+
var normalizedFromUnit = (0, _normalizeTimeUnit.normalizeTimeUnit)(fromUnit, "long");
|
|
29
|
+
var normalizedToUnit = (0, _normalizeTimeUnit.normalizeTimeUnit)(toUnit, "long");
|
|
30
|
+
var milliseconds = numericValue * conversionRates[normalizedFromUnit];
|
|
31
|
+
return milliseconds / conversionRates[normalizedToUnit];
|
|
29
32
|
};
|
package/module/es5/Time/index.js
CHANGED
|
@@ -13,4 +13,15 @@ Object.keys(_convertTime).forEach(function (key) {
|
|
|
13
13
|
return _convertTime[key];
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
|
+
});
|
|
17
|
+
var _normalizeTimeUnit = require("./normalizeTimeUnit");
|
|
18
|
+
Object.keys(_normalizeTimeUnit).forEach(function (key) {
|
|
19
|
+
if (key === "default" || key === "__esModule") return;
|
|
20
|
+
if (key in exports && exports[key] === _normalizeTimeUnit[key]) return;
|
|
21
|
+
Object.defineProperty(exports, key, {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function get() {
|
|
24
|
+
return _normalizeTimeUnit[key];
|
|
25
|
+
}
|
|
26
|
+
});
|
|
16
27
|
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { TimeUnit } from "$/time/timeUnit";
|
|
2
|
+
import type { TimeUnitShort } from "$/time/timeUnitShort";
|
|
3
|
+
/**
|
|
4
|
+
* Normalize time unit.
|
|
5
|
+
* @param unit Time unit
|
|
6
|
+
* @param to "long" or "short"
|
|
7
|
+
* @returns Normalized time unit
|
|
8
|
+
*/
|
|
9
|
+
export declare function normalizeTimeUnit(unit: TimeUnit | TimeUnitShort, to: "long"): TimeUnit;
|
|
10
|
+
export declare function normalizeTimeUnit(unit: TimeUnit | TimeUnitShort, to: "short"): TimeUnitShort;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.normalizeTimeUnit = normalizeTimeUnit;
|
|
7
|
+
var TIME_UNIT_MAP = {
|
|
8
|
+
milliseconds: {
|
|
9
|
+
"long": "milliseconds",
|
|
10
|
+
"short": "ms"
|
|
11
|
+
},
|
|
12
|
+
seconds: {
|
|
13
|
+
"long": "seconds",
|
|
14
|
+
"short": "s"
|
|
15
|
+
},
|
|
16
|
+
minutes: {
|
|
17
|
+
"long": "minutes",
|
|
18
|
+
"short": "m"
|
|
19
|
+
},
|
|
20
|
+
hours: {
|
|
21
|
+
"long": "hours",
|
|
22
|
+
"short": "h"
|
|
23
|
+
},
|
|
24
|
+
ms: {
|
|
25
|
+
"long": "milliseconds",
|
|
26
|
+
"short": "ms"
|
|
27
|
+
},
|
|
28
|
+
s: {
|
|
29
|
+
"long": "seconds",
|
|
30
|
+
"short": "s"
|
|
31
|
+
},
|
|
32
|
+
m: {
|
|
33
|
+
"long": "minutes",
|
|
34
|
+
"short": "m"
|
|
35
|
+
},
|
|
36
|
+
h: {
|
|
37
|
+
"long": "hours",
|
|
38
|
+
"short": "h"
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Normalize time unit.
|
|
44
|
+
* @param unit Time unit
|
|
45
|
+
* @param to "long" or "short"
|
|
46
|
+
* @returns Normalized time unit
|
|
47
|
+
*/
|
|
48
|
+
|
|
49
|
+
function normalizeTimeUnit(unit, to) {
|
|
50
|
+
return TIME_UNIT_MAP[unit][to];
|
|
51
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./unitConverterInitialization";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _unitConverterInitialization = require("./unitConverterInitialization");
|
|
7
|
+
Object.keys(_unitConverterInitialization).forEach(function (key) {
|
|
8
|
+
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _unitConverterInitialization[key]) return;
|
|
10
|
+
Object.defineProperty(exports, key, {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function get() {
|
|
13
|
+
return _unitConverterInitialization[key];
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const unitConverterInitialization: <T extends { [k in K]: number; }, K extends string | number | symbol>(toBaseUnitRatios: T) => (value: number, from: keyof T, to: keyof T) => number;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.unitConverterInitialization = void 0;
|
|
7
|
+
var _division = require("@/Math/division");
|
|
8
|
+
var _multiplication = require("@/Math/multiplication");
|
|
9
|
+
var unitConverterInitialization = exports.unitConverterInitialization = function unitConverterInitialization(toBaseUnitRatios) {
|
|
10
|
+
return function (value, from, to) {
|
|
11
|
+
return (0, _multiplication.multiplication)((0, _division.division)(value, toBaseUnitRatios[from]), toBaseUnitRatios[to]);
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -6,12 +6,13 @@ export * from "./string";
|
|
|
6
6
|
export * from "./isArray";
|
|
7
7
|
export * from "./isBrowser";
|
|
8
8
|
export * from "./isBun";
|
|
9
|
+
export * from "./isDictionaryObject";
|
|
9
10
|
export * from "./isDouble";
|
|
11
|
+
export * from "./isEqual";
|
|
10
12
|
export * from "./isNode";
|
|
11
13
|
export * from "./isNodeWebkit";
|
|
12
14
|
export * from "./isNotEmpty";
|
|
13
15
|
export * from "./isNumber";
|
|
14
|
-
export * from "./isObject";
|
|
15
16
|
export * from "./isPerfectSquare";
|
|
16
17
|
export * from "./isPrimeNumber";
|
|
17
18
|
export * from "./isValueNaN";
|
|
@@ -91,6 +91,17 @@ Object.keys(_isBun).forEach(function (key) {
|
|
|
91
91
|
}
|
|
92
92
|
});
|
|
93
93
|
});
|
|
94
|
+
var _isDictionaryObject = require("./isDictionaryObject");
|
|
95
|
+
Object.keys(_isDictionaryObject).forEach(function (key) {
|
|
96
|
+
if (key === "default" || key === "__esModule") return;
|
|
97
|
+
if (key in exports && exports[key] === _isDictionaryObject[key]) return;
|
|
98
|
+
Object.defineProperty(exports, key, {
|
|
99
|
+
enumerable: true,
|
|
100
|
+
get: function get() {
|
|
101
|
+
return _isDictionaryObject[key];
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
});
|
|
94
105
|
var _isDouble = require("./isDouble");
|
|
95
106
|
Object.keys(_isDouble).forEach(function (key) {
|
|
96
107
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -102,6 +113,17 @@ Object.keys(_isDouble).forEach(function (key) {
|
|
|
102
113
|
}
|
|
103
114
|
});
|
|
104
115
|
});
|
|
116
|
+
var _isEqual = require("./isEqual");
|
|
117
|
+
Object.keys(_isEqual).forEach(function (key) {
|
|
118
|
+
if (key === "default" || key === "__esModule") return;
|
|
119
|
+
if (key in exports && exports[key] === _isEqual[key]) return;
|
|
120
|
+
Object.defineProperty(exports, key, {
|
|
121
|
+
enumerable: true,
|
|
122
|
+
get: function get() {
|
|
123
|
+
return _isEqual[key];
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
});
|
|
105
127
|
var _isNode = require("./isNode");
|
|
106
128
|
Object.keys(_isNode).forEach(function (key) {
|
|
107
129
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -146,17 +168,6 @@ Object.keys(_isNumber).forEach(function (key) {
|
|
|
146
168
|
}
|
|
147
169
|
});
|
|
148
170
|
});
|
|
149
|
-
var _isObject = require("./isObject");
|
|
150
|
-
Object.keys(_isObject).forEach(function (key) {
|
|
151
|
-
if (key === "default" || key === "__esModule") return;
|
|
152
|
-
if (key in exports && exports[key] === _isObject[key]) return;
|
|
153
|
-
Object.defineProperty(exports, key, {
|
|
154
|
-
enumerable: true,
|
|
155
|
-
get: function get() {
|
|
156
|
-
return _isObject[key];
|
|
157
|
-
}
|
|
158
|
-
});
|
|
159
|
-
});
|
|
160
171
|
var _isPerfectSquare = require("./isPerfectSquare");
|
|
161
172
|
Object.keys(_isPerfectSquare).forEach(function (key) {
|
|
162
173
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 辞書型のオブジェクトかどうかを判定する
|
|
3
|
+
* @param object
|
|
4
|
+
* @returns {boolean} true: 辞書型オブジェクト, false: 辞書型オブジェクトでない
|
|
5
|
+
* @example isDictionaryObject({}); // true
|
|
6
|
+
* isDictionaryObject([]); // false
|
|
7
|
+
*/
|
|
8
|
+
export declare const isDictionaryObject: <T extends {
|
|
9
|
+
[key: string]: unknown;
|
|
10
|
+
}>(object: unknown) => object is T;
|