@stryke/types 0.10.12 → 0.10.19
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/README.md +18 -10
- package/dist/{array.d.ts → array-DVtfX_TI.d.mts} +17 -13
- package/dist/array-DVtfX_TI.d.mts.map +1 -0
- package/dist/array-DtIKbcDr.d.cts +122 -0
- package/dist/array-DtIKbcDr.d.cts.map +1 -0
- package/dist/array.cjs +0 -1
- package/dist/array.d.cts +2 -0
- package/dist/array.d.mts +2 -0
- package/dist/array.mjs +1 -0
- package/dist/{async.d.ts → async-BtPWg6IL.d.mts} +14 -8
- package/dist/async-BtPWg6IL.d.mts.map +1 -0
- package/dist/async-eKWh-_sF.d.cts +111 -0
- package/dist/async-eKWh-_sF.d.cts.map +1 -0
- package/dist/async.cjs +0 -1
- package/dist/async.d.cts +2 -0
- package/dist/async.d.mts +2 -0
- package/dist/async.mjs +1 -0
- package/dist/{base.d.ts → base-CiIyKS-b.d.mts} +120 -126
- package/dist/base-CiIyKS-b.d.mts.map +1 -0
- package/dist/base-Cpeh4C5c.cjs +3 -0
- package/dist/base-DmFPRVSE.mjs +3 -0
- package/dist/base-DmFPRVSE.mjs.map +1 -0
- package/dist/base-EF17pdAI.d.cts +331 -0
- package/dist/base-EF17pdAI.d.cts.map +1 -0
- package/dist/base.cjs +1 -16
- package/dist/base.d.cts +2 -0
- package/dist/base.d.mts +2 -0
- package/dist/base.mjs +1 -2
- package/dist/configuration-5Q2wg3Id.d.mts +71 -0
- package/dist/configuration-5Q2wg3Id.d.mts.map +1 -0
- package/dist/configuration-Dvz7q6dd.d.cts +71 -0
- package/dist/configuration-Dvz7q6dd.d.cts.map +1 -0
- package/dist/configuration.cjs +0 -1
- package/dist/configuration.d.cts +2 -0
- package/dist/configuration.d.mts +2 -0
- package/dist/configuration.mjs +1 -0
- package/dist/file-dM8RAMNC.d.cts +51 -0
- package/dist/file-dM8RAMNC.d.cts.map +1 -0
- package/dist/file-eWushyiM.d.mts +51 -0
- package/dist/file-eWushyiM.d.mts.map +1 -0
- package/dist/file.cjs +0 -1
- package/dist/file.d.cts +2 -0
- package/dist/file.d.mts +2 -0
- package/dist/file.mjs +1 -0
- package/dist/form-mTzpZCeA.d.cts +40 -0
- package/dist/form-mTzpZCeA.d.cts.map +1 -0
- package/dist/form-sNCVXIEk.d.mts +40 -0
- package/dist/form-sNCVXIEk.d.mts.map +1 -0
- package/dist/form.cjs +0 -1
- package/dist/form.d.cts +2 -0
- package/dist/form.d.mts +2 -0
- package/dist/form.mjs +1 -0
- package/dist/index.cjs +1 -214
- package/dist/index.d.cts +19 -0
- package/dist/index.d.mts +19 -0
- package/dist/index.mjs +1 -1
- package/dist/{json.d.ts → json-BlaU0Pbq.d.cts} +11 -13
- package/dist/json-BlaU0Pbq.d.cts.map +1 -0
- package/dist/json-C3wqh2t3.d.mts +70 -0
- package/dist/json-C3wqh2t3.d.mts.map +1 -0
- package/dist/json.cjs +0 -1
- package/dist/json.d.cts +2 -0
- package/dist/json.d.mts +2 -0
- package/dist/json.mjs +1 -0
- package/dist/logic-BoEG5A3-.d.cts +374 -0
- package/dist/logic-BoEG5A3-.d.cts.map +1 -0
- package/dist/logic-h9Jrrpsk.d.mts +374 -0
- package/dist/logic-h9Jrrpsk.d.mts.map +1 -0
- package/dist/logic.cjs +0 -1
- package/dist/logic.d.cts +2 -0
- package/dist/logic.d.mts +2 -0
- package/dist/logic.mjs +1 -0
- package/dist/messages-Bxu_o13x.d.mts +21 -0
- package/dist/messages-Bxu_o13x.d.mts.map +1 -0
- package/dist/messages-PtLJRJeN.d.cts +21 -0
- package/dist/messages-PtLJRJeN.d.cts.map +1 -0
- package/dist/messages.cjs +0 -1
- package/dist/messages.d.cts +2 -0
- package/dist/messages.d.mts +2 -0
- package/dist/messages.mjs +1 -0
- package/dist/navigator-DLpMW73v.d.mts +42 -0
- package/dist/navigator-DLpMW73v.d.mts.map +1 -0
- package/dist/navigator-wsxMUGqK.d.cts +42 -0
- package/dist/navigator-wsxMUGqK.d.cts.map +1 -0
- package/dist/navigator.cjs +0 -1
- package/dist/navigator.d.cts +2 -0
- package/dist/navigator.d.mts +2 -0
- package/dist/navigator.mjs +1 -0
- package/dist/number.cjs +0 -1
- package/dist/number.d.cts +2 -0
- package/dist/number.d.mts +2 -0
- package/dist/number.mjs +1 -0
- package/dist/{object.d.ts → object-B3Rc0f80.d.mts} +56 -84
- package/dist/object-B3Rc0f80.d.mts.map +1 -0
- package/dist/object-DyLgFijN.d.cts +392 -0
- package/dist/object-DyLgFijN.d.cts.map +1 -0
- package/dist/object.cjs +0 -1
- package/dist/object.d.cts +2 -0
- package/dist/object.d.mts +2 -0
- package/dist/object.mjs +1 -0
- package/dist/package-json-BYMmXu4B.d.mts +261 -0
- package/dist/package-json-BYMmXu4B.d.mts.map +1 -0
- package/dist/package-json-DMeUqEmW.d.cts +261 -0
- package/dist/package-json-DMeUqEmW.d.cts.map +1 -0
- package/dist/package-json.cjs +0 -1
- package/dist/package-json.d.cts +2 -0
- package/dist/package-json.d.mts +2 -0
- package/dist/package-json.mjs +1 -0
- package/dist/package-manager-PRcovqs-.d.mts +6 -0
- package/dist/package-manager-PRcovqs-.d.mts.map +1 -0
- package/dist/package-manager-tcG2TLVT.d.cts +6 -0
- package/dist/package-manager-tcG2TLVT.d.cts.map +1 -0
- package/dist/package-manager.cjs +0 -1
- package/dist/package-manager.d.cts +2 -0
- package/dist/package-manager.d.mts +2 -0
- package/dist/package-manager.mjs +1 -0
- package/dist/string.cjs +0 -1
- package/dist/string.d.cts +2 -0
- package/dist/string.d.mts +2 -0
- package/dist/string.mjs +1 -0
- package/dist/system-BxYi2_rE.d.mts +5 -0
- package/dist/system-BxYi2_rE.d.mts.map +1 -0
- package/dist/system-n1LPjzuJ.d.cts +5 -0
- package/dist/system-n1LPjzuJ.d.cts.map +1 -0
- package/dist/system.cjs +0 -1
- package/dist/system.d.cts +2 -0
- package/dist/system.d.mts +2 -0
- package/dist/system.mjs +1 -0
- package/dist/tsconfig-C6dWY2RO.d.cts +803 -0
- package/dist/tsconfig-C6dWY2RO.d.cts.map +1 -0
- package/dist/tsconfig-CUKA7cEN.d.mts +803 -0
- package/dist/tsconfig-CUKA7cEN.d.mts.map +1 -0
- package/dist/tsconfig.cjs +0 -1
- package/dist/tsconfig.d.cts +2 -0
- package/dist/tsconfig.d.mts +2 -0
- package/dist/tsconfig.mjs +1 -0
- package/dist/user-CkdO4wnf.d.mts +29 -0
- package/dist/user-CkdO4wnf.d.mts.map +1 -0
- package/dist/user-CovHR6Ne.d.cts +29 -0
- package/dist/user-CovHR6Ne.d.cts.map +1 -0
- package/dist/user.cjs +0 -1
- package/dist/user.d.cts +2 -0
- package/dist/user.d.mts +2 -0
- package/dist/user.mjs +1 -0
- package/dist/utilities-BVS-gcgS.d.mts +51 -0
- package/dist/utilities-BVS-gcgS.d.mts.map +1 -0
- package/dist/utilities-Jb4ggdM-.d.cts +51 -0
- package/dist/utilities-Jb4ggdM-.d.cts.map +1 -0
- package/dist/utilities.cjs +0 -1
- package/dist/utilities.d.cts +2 -0
- package/dist/utilities.d.mts +2 -0
- package/dist/utilities.mjs +1 -0
- package/dist/validations-C_7osVpS.d.mts +21 -0
- package/dist/validations-C_7osVpS.d.mts.map +1 -0
- package/dist/validations-CvwxY4RE.d.cts +21 -0
- package/dist/validations-CvwxY4RE.d.cts.map +1 -0
- package/dist/validations.cjs +0 -1
- package/dist/validations.d.cts +2 -0
- package/dist/validations.d.mts +2 -0
- package/dist/validations.mjs +1 -0
- package/package.json +68 -247
- package/dist/configuration.d.ts +0 -67
- package/dist/file.d.ts +0 -46
- package/dist/form.d.ts +0 -35
- package/dist/index.d.ts +0 -27
- package/dist/logic.d.ts +0 -152
- package/dist/messages.d.ts +0 -17
- package/dist/navigator.d.ts +0 -41
- package/dist/number.d.ts +0 -176
- package/dist/package-json.d.ts +0 -260
- package/dist/package-manager.d.ts +0 -2
- package/dist/string.d.ts +0 -75
- package/dist/system.d.ts +0 -1
- package/dist/tsconfig.d.ts +0 -798
- package/dist/user.d.ts +0 -25
- package/dist/utilities.d.ts +0 -53
- package/dist/validations.d.ts +0 -16
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file-eWushyiM.d.mts","names":[],"sources":["../src/file.ts"],"sourcesContent":[],"mappings":";;;KAoBY,UAAA;;AAAZ;AAKA;AAEU,KAFE,UAAA,GAEF;EACC,IAAA,EAAA,MAAA;EAOE,MAAA,EARH,UAQG;EAID,MAAA,CAAA,EAXD,gBAWC,EAAA;EAAI,IAAA,CAAA,EAAA,MAAA;EAOJ,QAAA,CAAA,EAAA,MAAa;EACE,YAAA,CAAA,EAAA,MAAA;CAAvB,GAAA,CAAA;EAEA,GAAA,EAAA,MAAA;EAAM,IAAA,CAAA,EAdG,IAcH;AAGV,CAAA,GAAiB;EAQL,GAAA,CAAA,EAAA,MAAS;EAAiB,IAAA,EArB1B,IAqB0B;CAAL,CAAA;;;;AAC/B,KAfU,aAAA,GACR,aAcF,CAAA,MAAA,GAdyB,MAczB,CAAA,GAAA,MAAA,GAZE,MAYF,GAAA,IAAA;AAAO,UATQ,eAAA,CASR;;;;;;;KADG,SAAA,GAAY,SAAS,KAAK,6BACpC,QAAQ,KAAK"}
|
package/dist/file.cjs
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
package/dist/file.d.cts
ADDED
package/dist/file.d.mts
ADDED
package/dist/file.mjs
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { c as NameValuePair } from "./utilities-Jb4ggdM-.cjs";
|
|
2
|
+
|
|
3
|
+
//#region src/form.d.ts
|
|
4
|
+
type SelectOptionValue = string | number | boolean | null;
|
|
5
|
+
/**
|
|
6
|
+
* A utility type for specifying the type of an option for a Select or Radio form field.
|
|
7
|
+
*/
|
|
8
|
+
interface SelectOption<TValue extends SelectOptionValue = SelectOptionValue, TName = string> extends NameValuePair<TValue, TName> {
|
|
9
|
+
/**
|
|
10
|
+
* The index of the select option
|
|
11
|
+
*/
|
|
12
|
+
index: number;
|
|
13
|
+
/**
|
|
14
|
+
* The description of the select option
|
|
15
|
+
*/
|
|
16
|
+
description?: string;
|
|
17
|
+
/**
|
|
18
|
+
* A short string describing the status of the select option
|
|
19
|
+
*/
|
|
20
|
+
status?: string;
|
|
21
|
+
/**
|
|
22
|
+
* An optional icon to display in the select option
|
|
23
|
+
*/
|
|
24
|
+
icon?: any;
|
|
25
|
+
/**
|
|
26
|
+
* An optional image to display in the select option
|
|
27
|
+
*/
|
|
28
|
+
image?: any;
|
|
29
|
+
/**
|
|
30
|
+
* Is the option value valid for selection in the dropdown
|
|
31
|
+
*/
|
|
32
|
+
disabled: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Sets or retrieves whether the option in the list box is the default item.
|
|
35
|
+
*/
|
|
36
|
+
selected: boolean;
|
|
37
|
+
}
|
|
38
|
+
//#endregion
|
|
39
|
+
export { SelectOptionValue as n, SelectOption as t };
|
|
40
|
+
//# sourceMappingURL=form-mTzpZCeA.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form-mTzpZCeA.d.cts","names":[],"sources":["../src/form.ts"],"sourcesContent":[],"mappings":";;;KAoBY,iBAAA;;AAAZ;AAKA;AACiB,UADA,YACA,CAAA,eAAA,iBAAA,GAAoB,iBAApB,EAAA,QAAA,MAAA,CAAA,SAEP,aAFO,CAEO,MAFP,EAEe,KAFf,CAAA,CAAA;EAAoB;;;EAE3B,KAAA,EAAA,MAAA;EAAa"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { c as NameValuePair } from "./utilities-BVS-gcgS.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/form.d.ts
|
|
4
|
+
type SelectOptionValue = string | number | boolean | null;
|
|
5
|
+
/**
|
|
6
|
+
* A utility type for specifying the type of an option for a Select or Radio form field.
|
|
7
|
+
*/
|
|
8
|
+
interface SelectOption<TValue extends SelectOptionValue = SelectOptionValue, TName = string> extends NameValuePair<TValue, TName> {
|
|
9
|
+
/**
|
|
10
|
+
* The index of the select option
|
|
11
|
+
*/
|
|
12
|
+
index: number;
|
|
13
|
+
/**
|
|
14
|
+
* The description of the select option
|
|
15
|
+
*/
|
|
16
|
+
description?: string;
|
|
17
|
+
/**
|
|
18
|
+
* A short string describing the status of the select option
|
|
19
|
+
*/
|
|
20
|
+
status?: string;
|
|
21
|
+
/**
|
|
22
|
+
* An optional icon to display in the select option
|
|
23
|
+
*/
|
|
24
|
+
icon?: any;
|
|
25
|
+
/**
|
|
26
|
+
* An optional image to display in the select option
|
|
27
|
+
*/
|
|
28
|
+
image?: any;
|
|
29
|
+
/**
|
|
30
|
+
* Is the option value valid for selection in the dropdown
|
|
31
|
+
*/
|
|
32
|
+
disabled: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Sets or retrieves whether the option in the list box is the default item.
|
|
35
|
+
*/
|
|
36
|
+
selected: boolean;
|
|
37
|
+
}
|
|
38
|
+
//#endregion
|
|
39
|
+
export { SelectOptionValue as n, SelectOption as t };
|
|
40
|
+
//# sourceMappingURL=form-sNCVXIEk.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form-sNCVXIEk.d.mts","names":[],"sources":["../src/form.ts"],"sourcesContent":[],"mappings":";;;KAoBY,iBAAA;;AAAZ;AAKA;AACiB,UADA,YACA,CAAA,eAAA,iBAAA,GAAoB,iBAApB,EAAA,QAAA,MAAA,CAAA,SAEP,aAFO,CAEO,MAFP,EAEe,KAFf,CAAA,CAAA;EAAoB;;;EAE3B,KAAA,EAAA,MAAA;EAAa"}
|
package/dist/form.cjs
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
package/dist/form.d.cts
ADDED
package/dist/form.d.mts
ADDED
package/dist/form.mjs
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{};
|
package/dist/index.cjs
CHANGED
|
@@ -1,214 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
var _array = require("./array.cjs");
|
|
7
|
-
Object.keys(_array).forEach(function (key) {
|
|
8
|
-
if (key === "default" || key === "__esModule") return;
|
|
9
|
-
if (key in exports && exports[key] === _array[key]) return;
|
|
10
|
-
Object.defineProperty(exports, key, {
|
|
11
|
-
enumerable: true,
|
|
12
|
-
get: function () {
|
|
13
|
-
return _array[key];
|
|
14
|
-
}
|
|
15
|
-
});
|
|
16
|
-
});
|
|
17
|
-
var _async = require("./async.cjs");
|
|
18
|
-
Object.keys(_async).forEach(function (key) {
|
|
19
|
-
if (key === "default" || key === "__esModule") return;
|
|
20
|
-
if (key in exports && exports[key] === _async[key]) return;
|
|
21
|
-
Object.defineProperty(exports, key, {
|
|
22
|
-
enumerable: true,
|
|
23
|
-
get: function () {
|
|
24
|
-
return _async[key];
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
});
|
|
28
|
-
var _base = require("./base.cjs");
|
|
29
|
-
Object.keys(_base).forEach(function (key) {
|
|
30
|
-
if (key === "default" || key === "__esModule") return;
|
|
31
|
-
if (key in exports && exports[key] === _base[key]) return;
|
|
32
|
-
Object.defineProperty(exports, key, {
|
|
33
|
-
enumerable: true,
|
|
34
|
-
get: function () {
|
|
35
|
-
return _base[key];
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
});
|
|
39
|
-
var _configuration = require("./configuration.cjs");
|
|
40
|
-
Object.keys(_configuration).forEach(function (key) {
|
|
41
|
-
if (key === "default" || key === "__esModule") return;
|
|
42
|
-
if (key in exports && exports[key] === _configuration[key]) return;
|
|
43
|
-
Object.defineProperty(exports, key, {
|
|
44
|
-
enumerable: true,
|
|
45
|
-
get: function () {
|
|
46
|
-
return _configuration[key];
|
|
47
|
-
}
|
|
48
|
-
});
|
|
49
|
-
});
|
|
50
|
-
var _file = require("./file.cjs");
|
|
51
|
-
Object.keys(_file).forEach(function (key) {
|
|
52
|
-
if (key === "default" || key === "__esModule") return;
|
|
53
|
-
if (key in exports && exports[key] === _file[key]) return;
|
|
54
|
-
Object.defineProperty(exports, key, {
|
|
55
|
-
enumerable: true,
|
|
56
|
-
get: function () {
|
|
57
|
-
return _file[key];
|
|
58
|
-
}
|
|
59
|
-
});
|
|
60
|
-
});
|
|
61
|
-
var _form = require("./form.cjs");
|
|
62
|
-
Object.keys(_form).forEach(function (key) {
|
|
63
|
-
if (key === "default" || key === "__esModule") return;
|
|
64
|
-
if (key in exports && exports[key] === _form[key]) return;
|
|
65
|
-
Object.defineProperty(exports, key, {
|
|
66
|
-
enumerable: true,
|
|
67
|
-
get: function () {
|
|
68
|
-
return _form[key];
|
|
69
|
-
}
|
|
70
|
-
});
|
|
71
|
-
});
|
|
72
|
-
var _json = require("./json.cjs");
|
|
73
|
-
Object.keys(_json).forEach(function (key) {
|
|
74
|
-
if (key === "default" || key === "__esModule") return;
|
|
75
|
-
if (key in exports && exports[key] === _json[key]) return;
|
|
76
|
-
Object.defineProperty(exports, key, {
|
|
77
|
-
enumerable: true,
|
|
78
|
-
get: function () {
|
|
79
|
-
return _json[key];
|
|
80
|
-
}
|
|
81
|
-
});
|
|
82
|
-
});
|
|
83
|
-
var _logic = require("./logic.cjs");
|
|
84
|
-
Object.keys(_logic).forEach(function (key) {
|
|
85
|
-
if (key === "default" || key === "__esModule") return;
|
|
86
|
-
if (key in exports && exports[key] === _logic[key]) return;
|
|
87
|
-
Object.defineProperty(exports, key, {
|
|
88
|
-
enumerable: true,
|
|
89
|
-
get: function () {
|
|
90
|
-
return _logic[key];
|
|
91
|
-
}
|
|
92
|
-
});
|
|
93
|
-
});
|
|
94
|
-
var _messages = require("./messages.cjs");
|
|
95
|
-
Object.keys(_messages).forEach(function (key) {
|
|
96
|
-
if (key === "default" || key === "__esModule") return;
|
|
97
|
-
if (key in exports && exports[key] === _messages[key]) return;
|
|
98
|
-
Object.defineProperty(exports, key, {
|
|
99
|
-
enumerable: true,
|
|
100
|
-
get: function () {
|
|
101
|
-
return _messages[key];
|
|
102
|
-
}
|
|
103
|
-
});
|
|
104
|
-
});
|
|
105
|
-
var _navigator = require("./navigator.cjs");
|
|
106
|
-
Object.keys(_navigator).forEach(function (key) {
|
|
107
|
-
if (key === "default" || key === "__esModule") return;
|
|
108
|
-
if (key in exports && exports[key] === _navigator[key]) return;
|
|
109
|
-
Object.defineProperty(exports, key, {
|
|
110
|
-
enumerable: true,
|
|
111
|
-
get: function () {
|
|
112
|
-
return _navigator[key];
|
|
113
|
-
}
|
|
114
|
-
});
|
|
115
|
-
});
|
|
116
|
-
var _object = require("./object.cjs");
|
|
117
|
-
Object.keys(_object).forEach(function (key) {
|
|
118
|
-
if (key === "default" || key === "__esModule") return;
|
|
119
|
-
if (key in exports && exports[key] === _object[key]) return;
|
|
120
|
-
Object.defineProperty(exports, key, {
|
|
121
|
-
enumerable: true,
|
|
122
|
-
get: function () {
|
|
123
|
-
return _object[key];
|
|
124
|
-
}
|
|
125
|
-
});
|
|
126
|
-
});
|
|
127
|
-
var _packageJson = require("./package-json.cjs");
|
|
128
|
-
Object.keys(_packageJson).forEach(function (key) {
|
|
129
|
-
if (key === "default" || key === "__esModule") return;
|
|
130
|
-
if (key in exports && exports[key] === _packageJson[key]) return;
|
|
131
|
-
Object.defineProperty(exports, key, {
|
|
132
|
-
enumerable: true,
|
|
133
|
-
get: function () {
|
|
134
|
-
return _packageJson[key];
|
|
135
|
-
}
|
|
136
|
-
});
|
|
137
|
-
});
|
|
138
|
-
var _packageManager = require("./package-manager.cjs");
|
|
139
|
-
Object.keys(_packageManager).forEach(function (key) {
|
|
140
|
-
if (key === "default" || key === "__esModule") return;
|
|
141
|
-
if (key in exports && exports[key] === _packageManager[key]) return;
|
|
142
|
-
Object.defineProperty(exports, key, {
|
|
143
|
-
enumerable: true,
|
|
144
|
-
get: function () {
|
|
145
|
-
return _packageManager[key];
|
|
146
|
-
}
|
|
147
|
-
});
|
|
148
|
-
});
|
|
149
|
-
var _string = require("./string.cjs");
|
|
150
|
-
Object.keys(_string).forEach(function (key) {
|
|
151
|
-
if (key === "default" || key === "__esModule") return;
|
|
152
|
-
if (key in exports && exports[key] === _string[key]) return;
|
|
153
|
-
Object.defineProperty(exports, key, {
|
|
154
|
-
enumerable: true,
|
|
155
|
-
get: function () {
|
|
156
|
-
return _string[key];
|
|
157
|
-
}
|
|
158
|
-
});
|
|
159
|
-
});
|
|
160
|
-
var _system = require("./system.cjs");
|
|
161
|
-
Object.keys(_system).forEach(function (key) {
|
|
162
|
-
if (key === "default" || key === "__esModule") return;
|
|
163
|
-
if (key in exports && exports[key] === _system[key]) return;
|
|
164
|
-
Object.defineProperty(exports, key, {
|
|
165
|
-
enumerable: true,
|
|
166
|
-
get: function () {
|
|
167
|
-
return _system[key];
|
|
168
|
-
}
|
|
169
|
-
});
|
|
170
|
-
});
|
|
171
|
-
var _tsconfig = require("./tsconfig.cjs");
|
|
172
|
-
Object.keys(_tsconfig).forEach(function (key) {
|
|
173
|
-
if (key === "default" || key === "__esModule") return;
|
|
174
|
-
if (key in exports && exports[key] === _tsconfig[key]) return;
|
|
175
|
-
Object.defineProperty(exports, key, {
|
|
176
|
-
enumerable: true,
|
|
177
|
-
get: function () {
|
|
178
|
-
return _tsconfig[key];
|
|
179
|
-
}
|
|
180
|
-
});
|
|
181
|
-
});
|
|
182
|
-
var _user = require("./user.cjs");
|
|
183
|
-
Object.keys(_user).forEach(function (key) {
|
|
184
|
-
if (key === "default" || key === "__esModule") return;
|
|
185
|
-
if (key in exports && exports[key] === _user[key]) return;
|
|
186
|
-
Object.defineProperty(exports, key, {
|
|
187
|
-
enumerable: true,
|
|
188
|
-
get: function () {
|
|
189
|
-
return _user[key];
|
|
190
|
-
}
|
|
191
|
-
});
|
|
192
|
-
});
|
|
193
|
-
var _utilities = require("./utilities.cjs");
|
|
194
|
-
Object.keys(_utilities).forEach(function (key) {
|
|
195
|
-
if (key === "default" || key === "__esModule") return;
|
|
196
|
-
if (key in exports && exports[key] === _utilities[key]) return;
|
|
197
|
-
Object.defineProperty(exports, key, {
|
|
198
|
-
enumerable: true,
|
|
199
|
-
get: function () {
|
|
200
|
-
return _utilities[key];
|
|
201
|
-
}
|
|
202
|
-
});
|
|
203
|
-
});
|
|
204
|
-
var _validations = require("./validations.cjs");
|
|
205
|
-
Object.keys(_validations).forEach(function (key) {
|
|
206
|
-
if (key === "default" || key === "__esModule") return;
|
|
207
|
-
if (key in exports && exports[key] === _validations[key]) return;
|
|
208
|
-
Object.defineProperty(exports, key, {
|
|
209
|
-
enumerable: true,
|
|
210
|
-
get: function () {
|
|
211
|
-
return _validations[key];
|
|
212
|
-
}
|
|
213
|
-
});
|
|
214
|
-
});
|
|
1
|
+
require(`./array.cjs`),require(`./async.cjs`);const e=require(`./base-Cpeh4C5c.cjs`);require(`./configuration.cjs`),require(`./file.cjs`),require(`./form.cjs`),require(`./json.cjs`),require(`./logic.cjs`),require(`./messages.cjs`),require(`./navigator.cjs`),require(`./object.cjs`),require(`./package-json.cjs`),require(`./package-manager.cjs`),require(`./string.cjs`),require(`./system.cjs`),require(`./tsconfig.cjs`),require(`./user.cjs`),require(`./utilities.cjs`),require(`./validations.cjs`),exports.$NestedValue=e.t,exports.EMPTY_OBJECT=e.n,exports.EMPTY_STRING=e.r,exports.NEWLINE_STRING=e.i,exports.TYPE_ARGUMENTS=e.a,exports.TYPE_ARRAY=e.o,exports.TYPE_MAP=e.s,exports.TYPE_OBJECT=e.c,exports.TYPE_SET=e.l;
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { a as Arrayable, c as StaticPartOfArray, d as UnknownArrayOrTuple, f as VariablePartOfArray, i as ArrayValues, l as TypedArray, n as ArrayIndices, o as FirstArrayElement, r as ArrayLength, s as LastArrayElement, t as ArrayElement, u as UnknownArray } from "./array-DtIKbcDr.cjs";
|
|
2
|
+
import { $ as NonNullishObject, A as Filter, B as IsFunction, C as DeepPartial, Ct as TypedIndexable, D as EmptyArray, E as EMPTY_STRING, F as Identity, G as IsUndefined, H as IsNull, I as IndexType, J as MaybePromise, K as IsUnknown, L as Indexable, M as FunctionOrValue, N as GlobalThis, O as EmptyObject, P as HasMultipleCallSignatures, Q as Newable, R as IsAny, S as Constructor, St as Typed, T as EMPTY_OBJECT, U as IsNullish, V as IsNever, W as IsPrimitive, X as NativeClass, Y as NEWLINE_STRING, Z as NestedValue, _ as BuiltIns, _t as TYPE_MAP, a as Any, at as Primitive, b as Clonable, bt as TypeMap, c as AnyCase, ct as RequiredKeysOf, d as AnyNumber, dt as SerializablePrimitive, et as NonRecursiveType, f as AnyString, ft as SetRequired, g as BuildTuple, gt as TYPE_ARRAY, h as BrowserNativeObject, ht as TYPE_ARGUMENTS, i as AbstractConstructor, it as PlainObject, j as FunctionLike, k as Except, l as AnyFunction, lt as Rollback, m as AtomicObject, mt as StructuredCloneable, n as Abstract, nt as Nullish, o as AnyArray, ot as ReducerFunction, p as AnyWeakMap, pt as Simplify, q as List, r as AbstractClass, rt as Nullishable, s as AnyBoolean, st as RefObject, t as $NestedValue, tt as NonUndefined, u as AnyMap, ut as Sequenced, v as Class, vt as TYPE_OBJECT, w as Dictionary, wt as Versioned, x as Collection, xt as TypeTester, y as ClassTypeCheckable, yt as TYPE_SET, z as IsEqual } from "./base-EF17pdAI.cjs";
|
|
3
|
+
import { a as Awaitable, i as Await, n as AsyncReturnType, o as Resolvable, r as Asyncify, s as SetReturnType, t as AsyncFunction } from "./async-eKWh-_sF.cjs";
|
|
4
|
+
import { a as TypeDefinitionParameter, i as TypeDefinition, n as DotenvTypeDefinitions, r as StormConfigurationGroups, t as DotenvConfiguration } from "./configuration-Dvz7q6dd.cjs";
|
|
5
|
+
import { a as MessageType, i as MessageDetails, n as HelpMessageDetails, o as SuccessMessageDetails, r as InfoMessageDetails, s as WarningMessageDetails, t as ErrorMessageDetails } from "./messages-PtLJRJeN.cjs";
|
|
6
|
+
import { a as SuccessValidationDetail, i as InfoValidationDetail, n as HelpValidationDetail, o as ValidationDetail, r as InferValidationType, s as WarningValidationDetail, t as ErrorValidationDetail } from "./validations-CvwxY4RE.cjs";
|
|
7
|
+
import { a as FilterPattern, i as FileStatus, n as FileInputOutput, r as FileResult, t as AssetGlob } from "./file-dM8RAMNC.cjs";
|
|
8
|
+
import { a as DeepReadonlyObject, c as NameValuePair, d as Nullable, f as Pretty, i as DeepReadonlyArray, l as Narrow, m as Try, n as ComputeRange, o as Index40, p as RequiredByKey, r as DeepReadonly, s as IsNullable, t as Cast, u as NoInfer } from "./utilities-Jb4ggdM-.cjs";
|
|
9
|
+
import { n as SelectOptionValue, t as SelectOption } from "./form-mTzpZCeA.cjs";
|
|
10
|
+
import { a as JsonValue, i as JsonPrimitive, n as JsonObject, o as StringKeyOf, r as JsonPointerPath, s as Stringified, t as JsonArray } from "./json-BlaU0Pbq.cjs";
|
|
11
|
+
import { C as WordSeparators, S as Whitespace, _ as StringDigit, a as GreaterThanOrEqual, b as StringToNumber, c as Not, d as PositiveNumericCharacterGt, f as PositiveNumericStringGt, g as StartsWith, h as Sum, i as GreaterThan, l as NumberAbsolute, m as Subtract, n as ArrayMax, o as IsNotFalse, p as SameLengthPositiveNumericStringGt, r as ArrayMin, s as LessThan, t as And, u as Or, v as StringLength, x as UpperCaseCharacters, y as StringToArray } from "./logic-BoEG5A3-.cjs";
|
|
12
|
+
import { a as Navigator, c as NetworkState, i as EventListener, l as WorkerNavigator, n as ConnectionType, o as NavigatorNetworkInformation, r as EffectiveConnectionType, s as NetworkInformation, t as BatteryManager } from "./navigator-wsxMUGqK.cjs";
|
|
13
|
+
import { C as ToString, S as ToPath, _ as ObjectValue, a as GetWithPath, b as PropertyOf, c as IsEmptyObject, d as IsPlainObject, f as IsStringLiteral, g as NullableDeepValue, h as LiteralUnion, i as Get, l as IsLiteral, m as LiteralKeyOf, n as DeepKey, o as InternalPaths, p as IsSymbolLiteral, r as DeepValue, s as IsBooleanLiteral, t as BuildObject, u as IsNumericLiteral, v as Paths, w as UnionToIntersection, x as Split, y as PickDeep } from "./object-DyLgFijN.cjs";
|
|
14
|
+
import { t as PackageJson } from "./package-json-DMeUqEmW.cjs";
|
|
15
|
+
import { n as PackageManagerLockFile, t as PackageManager } from "./package-manager-tcG2TLVT.cjs";
|
|
16
|
+
import { t as Platform } from "./system-n1LPjzuJ.cjs";
|
|
17
|
+
import { _ as WatchDirectory, a as JSX, b as WatchFileKind, c as ModuleDetection, d as Plugin, f as PollingWatchKind, g as TypeAcquisition, h as TsConfigJson, i as ImportsNotUsedAsValues, l as ModuleResolution, m as Target, n as FallbackPolling, o as Lib, p as References, r as IgnoreDeprecations, s as Module, t as CompilerOptions, u as NewLine, v as WatchDirectoryKind, x as WatchOptions, y as WatchFile } from "./tsconfig-C6dWY2RO.cjs";
|
|
18
|
+
import { n as UserType, t as UserBase } from "./user-CovHR6Ne.cjs";
|
|
19
|
+
export { $NestedValue, Abstract, AbstractClass, AbstractConstructor, And, Any, AnyArray, AnyBoolean, AnyCase, AnyFunction, AnyMap, AnyNumber, AnyString, AnyWeakMap, ArrayElement, ArrayIndices, ArrayLength, ArrayMax, ArrayMin, ArrayValues, Arrayable, AssetGlob, AsyncFunction, AsyncReturnType, Asyncify, AtomicObject, Await, Awaitable, BatteryManager, BrowserNativeObject, BuildObject, BuildTuple, BuiltIns, Cast, Class, ClassTypeCheckable, Clonable, Collection, CompilerOptions, ComputeRange, ConnectionType, Constructor, DeepKey, DeepPartial, DeepReadonly, DeepReadonlyArray, DeepReadonlyObject, DeepValue, Dictionary, DotenvConfiguration, DotenvTypeDefinitions, EMPTY_OBJECT, EMPTY_STRING, EffectiveConnectionType, EmptyArray, EmptyObject, ErrorMessageDetails, ErrorValidationDetail, EventListener, Except, FallbackPolling, FileInputOutput, FileResult, FileStatus, Filter, FilterPattern, FirstArrayElement, FunctionLike, FunctionOrValue, Get, GetWithPath, GlobalThis, GreaterThan, GreaterThanOrEqual, HasMultipleCallSignatures, HelpMessageDetails, HelpValidationDetail, Identity, IgnoreDeprecations, ImportsNotUsedAsValues, Index40, IndexType, Indexable, InferValidationType, InfoMessageDetails, InfoValidationDetail, InternalPaths, IsAny, IsBooleanLiteral, IsEmptyObject, IsEqual, IsFunction, IsLiteral, IsNever, IsNotFalse, IsNull, IsNullable, IsNullish, IsNumericLiteral, IsPlainObject, IsPrimitive, IsStringLiteral, IsSymbolLiteral, IsUndefined, IsUnknown, JSX, JsonArray, JsonObject, JsonPointerPath, JsonPrimitive, JsonValue, LastArrayElement, LessThan, Lib, List, LiteralKeyOf, LiteralUnion, MaybePromise, MessageDetails, MessageType, Module, ModuleDetection, ModuleResolution, NEWLINE_STRING, NameValuePair, Narrow, NativeClass, Navigator, NavigatorNetworkInformation, NestedValue, NetworkInformation, NetworkState, NewLine, Newable, NoInfer, NonNullishObject, NonRecursiveType, NonUndefined, Not, Nullable, NullableDeepValue, Nullish, Nullishable, NumberAbsolute, ObjectValue, Or, PackageJson, PackageManager, PackageManagerLockFile, Paths, PickDeep, PlainObject, Platform, Plugin, PollingWatchKind, PositiveNumericCharacterGt, PositiveNumericStringGt, Pretty, Primitive, PropertyOf, ReducerFunction, RefObject, References, RequiredByKey, RequiredKeysOf, Resolvable, Rollback, SameLengthPositiveNumericStringGt, SelectOption, SelectOptionValue, Sequenced, SerializablePrimitive, SetRequired, SetReturnType, Simplify, Split, StartsWith, StaticPartOfArray, StormConfigurationGroups, StringDigit, StringKeyOf, StringLength, StringToArray, StringToNumber, Stringified, StructuredCloneable, Subtract, SuccessMessageDetails, SuccessValidationDetail, Sum, TYPE_ARGUMENTS, TYPE_ARRAY, TYPE_MAP, TYPE_OBJECT, TYPE_SET, Target, ToPath, ToString, Try, TsConfigJson, TypeAcquisition, TypeDefinition, TypeDefinitionParameter, TypeMap, TypeTester, Typed, TypedArray, TypedIndexable, UnionToIntersection, UnknownArray, UnknownArrayOrTuple, UpperCaseCharacters, UserBase, UserType, ValidationDetail, VariablePartOfArray, Versioned, WarningMessageDetails, WarningValidationDetail, WatchDirectory, WatchDirectoryKind, WatchFile, WatchFileKind, WatchOptions, Whitespace, WordSeparators, WorkerNavigator };
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { a as Arrayable, c as StaticPartOfArray, d as UnknownArrayOrTuple, f as VariablePartOfArray, i as ArrayValues, l as TypedArray, n as ArrayIndices, o as FirstArrayElement, r as ArrayLength, s as LastArrayElement, t as ArrayElement, u as UnknownArray } from "./array-DVtfX_TI.mjs";
|
|
2
|
+
import { $ as NonNullishObject, A as Filter, B as IsFunction, C as DeepPartial, Ct as TypedIndexable, D as EmptyArray, E as EMPTY_STRING, F as Identity, G as IsUndefined, H as IsNull, I as IndexType, J as MaybePromise, K as IsUnknown, L as Indexable, M as FunctionOrValue, N as GlobalThis, O as EmptyObject, P as HasMultipleCallSignatures, Q as Newable, R as IsAny, S as Constructor, St as Typed, T as EMPTY_OBJECT, U as IsNullish, V as IsNever, W as IsPrimitive, X as NativeClass, Y as NEWLINE_STRING, Z as NestedValue, _ as BuiltIns, _t as TYPE_MAP, a as Any, at as Primitive, b as Clonable, bt as TypeMap, c as AnyCase, ct as RequiredKeysOf, d as AnyNumber, dt as SerializablePrimitive, et as NonRecursiveType, f as AnyString, ft as SetRequired, g as BuildTuple, gt as TYPE_ARRAY, h as BrowserNativeObject, ht as TYPE_ARGUMENTS, i as AbstractConstructor, it as PlainObject, j as FunctionLike, k as Except, l as AnyFunction, lt as Rollback, m as AtomicObject, mt as StructuredCloneable, n as Abstract, nt as Nullish, o as AnyArray, ot as ReducerFunction, p as AnyWeakMap, pt as Simplify, q as List, r as AbstractClass, rt as Nullishable, s as AnyBoolean, st as RefObject, t as $NestedValue, tt as NonUndefined, u as AnyMap, ut as Sequenced, v as Class, vt as TYPE_OBJECT, w as Dictionary, wt as Versioned, x as Collection, xt as TypeTester, y as ClassTypeCheckable, yt as TYPE_SET, z as IsEqual } from "./base-CiIyKS-b.mjs";
|
|
3
|
+
import { a as Awaitable, i as Await, n as AsyncReturnType, o as Resolvable, r as Asyncify, s as SetReturnType, t as AsyncFunction } from "./async-BtPWg6IL.mjs";
|
|
4
|
+
import { a as TypeDefinitionParameter, i as TypeDefinition, n as DotenvTypeDefinitions, r as StormConfigurationGroups, t as DotenvConfiguration } from "./configuration-5Q2wg3Id.mjs";
|
|
5
|
+
import { a as MessageType, i as MessageDetails, n as HelpMessageDetails, o as SuccessMessageDetails, r as InfoMessageDetails, s as WarningMessageDetails, t as ErrorMessageDetails } from "./messages-Bxu_o13x.mjs";
|
|
6
|
+
import { a as SuccessValidationDetail, i as InfoValidationDetail, n as HelpValidationDetail, o as ValidationDetail, r as InferValidationType, s as WarningValidationDetail, t as ErrorValidationDetail } from "./validations-C_7osVpS.mjs";
|
|
7
|
+
import { a as FilterPattern, i as FileStatus, n as FileInputOutput, r as FileResult, t as AssetGlob } from "./file-eWushyiM.mjs";
|
|
8
|
+
import { a as DeepReadonlyObject, c as NameValuePair, d as Nullable, f as Pretty, i as DeepReadonlyArray, l as Narrow, m as Try, n as ComputeRange, o as Index40, p as RequiredByKey, r as DeepReadonly, s as IsNullable, t as Cast, u as NoInfer } from "./utilities-BVS-gcgS.mjs";
|
|
9
|
+
import { n as SelectOptionValue, t as SelectOption } from "./form-sNCVXIEk.mjs";
|
|
10
|
+
import { a as JsonValue, i as JsonPrimitive, n as JsonObject, o as StringKeyOf, r as JsonPointerPath, s as Stringified, t as JsonArray } from "./json-C3wqh2t3.mjs";
|
|
11
|
+
import { C as WordSeparators, S as Whitespace, _ as StringDigit, a as GreaterThanOrEqual, b as StringToNumber, c as Not, d as PositiveNumericCharacterGt, f as PositiveNumericStringGt, g as StartsWith, h as Sum, i as GreaterThan, l as NumberAbsolute, m as Subtract, n as ArrayMax, o as IsNotFalse, p as SameLengthPositiveNumericStringGt, r as ArrayMin, s as LessThan, t as And, u as Or, v as StringLength, x as UpperCaseCharacters, y as StringToArray } from "./logic-h9Jrrpsk.mjs";
|
|
12
|
+
import { a as Navigator, c as NetworkState, i as EventListener, l as WorkerNavigator, n as ConnectionType, o as NavigatorNetworkInformation, r as EffectiveConnectionType, s as NetworkInformation, t as BatteryManager } from "./navigator-DLpMW73v.mjs";
|
|
13
|
+
import { C as ToString, S as ToPath, _ as ObjectValue, a as GetWithPath, b as PropertyOf, c as IsEmptyObject, d as IsPlainObject, f as IsStringLiteral, g as NullableDeepValue, h as LiteralUnion, i as Get, l as IsLiteral, m as LiteralKeyOf, n as DeepKey, o as InternalPaths, p as IsSymbolLiteral, r as DeepValue, s as IsBooleanLiteral, t as BuildObject, u as IsNumericLiteral, v as Paths, w as UnionToIntersection, x as Split, y as PickDeep } from "./object-B3Rc0f80.mjs";
|
|
14
|
+
import { t as PackageJson } from "./package-json-BYMmXu4B.mjs";
|
|
15
|
+
import { n as PackageManagerLockFile, t as PackageManager } from "./package-manager-PRcovqs-.mjs";
|
|
16
|
+
import { t as Platform } from "./system-BxYi2_rE.mjs";
|
|
17
|
+
import { _ as WatchDirectory, a as JSX, b as WatchFileKind, c as ModuleDetection, d as Plugin, f as PollingWatchKind, g as TypeAcquisition, h as TsConfigJson, i as ImportsNotUsedAsValues, l as ModuleResolution, m as Target, n as FallbackPolling, o as Lib, p as References, r as IgnoreDeprecations, s as Module, t as CompilerOptions, u as NewLine, v as WatchDirectoryKind, x as WatchOptions, y as WatchFile } from "./tsconfig-CUKA7cEN.mjs";
|
|
18
|
+
import { n as UserType, t as UserBase } from "./user-CkdO4wnf.mjs";
|
|
19
|
+
export { $NestedValue, Abstract, AbstractClass, AbstractConstructor, And, Any, AnyArray, AnyBoolean, AnyCase, AnyFunction, AnyMap, AnyNumber, AnyString, AnyWeakMap, ArrayElement, ArrayIndices, ArrayLength, ArrayMax, ArrayMin, ArrayValues, Arrayable, AssetGlob, AsyncFunction, AsyncReturnType, Asyncify, AtomicObject, Await, Awaitable, BatteryManager, BrowserNativeObject, BuildObject, BuildTuple, BuiltIns, Cast, Class, ClassTypeCheckable, Clonable, Collection, CompilerOptions, ComputeRange, ConnectionType, Constructor, DeepKey, DeepPartial, DeepReadonly, DeepReadonlyArray, DeepReadonlyObject, DeepValue, Dictionary, DotenvConfiguration, DotenvTypeDefinitions, EMPTY_OBJECT, EMPTY_STRING, EffectiveConnectionType, EmptyArray, EmptyObject, ErrorMessageDetails, ErrorValidationDetail, EventListener, Except, FallbackPolling, FileInputOutput, FileResult, FileStatus, Filter, FilterPattern, FirstArrayElement, FunctionLike, FunctionOrValue, Get, GetWithPath, GlobalThis, GreaterThan, GreaterThanOrEqual, HasMultipleCallSignatures, HelpMessageDetails, HelpValidationDetail, Identity, IgnoreDeprecations, ImportsNotUsedAsValues, Index40, IndexType, Indexable, InferValidationType, InfoMessageDetails, InfoValidationDetail, InternalPaths, IsAny, IsBooleanLiteral, IsEmptyObject, IsEqual, IsFunction, IsLiteral, IsNever, IsNotFalse, IsNull, IsNullable, IsNullish, IsNumericLiteral, IsPlainObject, IsPrimitive, IsStringLiteral, IsSymbolLiteral, IsUndefined, IsUnknown, JSX, JsonArray, JsonObject, JsonPointerPath, JsonPrimitive, JsonValue, LastArrayElement, LessThan, Lib, List, LiteralKeyOf, LiteralUnion, MaybePromise, MessageDetails, MessageType, Module, ModuleDetection, ModuleResolution, NEWLINE_STRING, NameValuePair, Narrow, NativeClass, Navigator, NavigatorNetworkInformation, NestedValue, NetworkInformation, NetworkState, NewLine, Newable, NoInfer, NonNullishObject, NonRecursiveType, NonUndefined, Not, Nullable, NullableDeepValue, Nullish, Nullishable, NumberAbsolute, ObjectValue, Or, PackageJson, PackageManager, PackageManagerLockFile, Paths, PickDeep, PlainObject, Platform, Plugin, PollingWatchKind, PositiveNumericCharacterGt, PositiveNumericStringGt, Pretty, Primitive, PropertyOf, ReducerFunction, RefObject, References, RequiredByKey, RequiredKeysOf, Resolvable, Rollback, SameLengthPositiveNumericStringGt, SelectOption, SelectOptionValue, Sequenced, SerializablePrimitive, SetRequired, SetReturnType, Simplify, Split, StartsWith, StaticPartOfArray, StormConfigurationGroups, StringDigit, StringKeyOf, StringLength, StringToArray, StringToNumber, Stringified, StructuredCloneable, Subtract, SuccessMessageDetails, SuccessValidationDetail, Sum, TYPE_ARGUMENTS, TYPE_ARRAY, TYPE_MAP, TYPE_OBJECT, TYPE_SET, Target, ToPath, ToString, Try, TsConfigJson, TypeAcquisition, TypeDefinition, TypeDefinitionParameter, TypeMap, TypeTester, Typed, TypedArray, TypedIndexable, UnionToIntersection, UnknownArray, UnknownArrayOrTuple, UpperCaseCharacters, UserBase, UserType, ValidationDetail, VariablePartOfArray, Versioned, WarningMessageDetails, WarningValidationDetail, WatchDirectory, WatchDirectoryKind, WatchFile, WatchFileKind, WatchOptions, Whitespace, WordSeparators, WorkerNavigator };
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import"./array.mjs";import"./async.mjs";import{a as e,c as t,i as n,l as r,n as i,o as a,r as o,s,t as c}from"./base-DmFPRVSE.mjs";import"./configuration.mjs";import"./file.mjs";import"./form.mjs";import"./json.mjs";import"./logic.mjs";import"./messages.mjs";import"./navigator.mjs";import"./object.mjs";import"./package-json.mjs";import"./package-manager.mjs";import"./string.mjs";import"./system.mjs";import"./tsconfig.mjs";import"./user.mjs";import"./utilities.mjs";import"./validations.mjs";export{c as $NestedValue,i as EMPTY_OBJECT,o as EMPTY_STRING,n as NEWLINE_STRING,e as TYPE_ARGUMENTS,a as TYPE_ARRAY,s as TYPE_MAP,t as TYPE_OBJECT,r as TYPE_SET};
|
|
@@ -1,29 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
} & {
|
|
4
|
-
[Key in string]?: JsonValue | undefined;
|
|
5
|
-
};
|
|
1
|
+
//#region src/json.d.ts
|
|
2
|
+
type JsonObject = { [Key in string]: JsonValue } & { [Key in string]?: JsonValue | undefined };
|
|
6
3
|
/**
|
|
7
4
|
* Matches a JSON array.
|
|
8
5
|
*/
|
|
9
|
-
|
|
6
|
+
type JsonArray = JsonValue[] | readonly JsonValue[];
|
|
10
7
|
/**
|
|
11
8
|
* Matches any valid JSON primitive value.
|
|
12
9
|
*/
|
|
13
|
-
|
|
10
|
+
type JsonPrimitive = string | number | boolean | null;
|
|
14
11
|
/**
|
|
15
12
|
* Matches any valid JSON value.
|
|
16
13
|
*
|
|
17
14
|
* @see `Jsonify` if you need to transform a type to one that is assignable to `JsonValue`.
|
|
18
15
|
*/
|
|
19
|
-
|
|
16
|
+
type JsonValue = JsonPrimitive | JsonObject | JsonArray;
|
|
20
17
|
/**
|
|
21
18
|
* Matches a JSON pointer's path segments.
|
|
22
19
|
*
|
|
23
20
|
* @remarks
|
|
24
21
|
* These segments are used to navigate through the JSON object structure and point to a specific, referenced value.
|
|
25
22
|
*/
|
|
26
|
-
|
|
23
|
+
type JsonPointerPath = (string | number)[];
|
|
27
24
|
/**
|
|
28
25
|
* Create a type with the keys of the given type changed to `string` type.
|
|
29
26
|
*
|
|
@@ -44,9 +41,7 @@ export type JsonPointerPath = (string | number)[];
|
|
|
44
41
|
* };
|
|
45
42
|
* ```
|
|
46
43
|
*/
|
|
47
|
-
|
|
48
|
-
[KeyType in keyof ObjectType]: string;
|
|
49
|
-
};
|
|
44
|
+
type Stringified<ObjectType> = { [KeyType in keyof ObjectType]: string };
|
|
50
45
|
/**
|
|
51
46
|
* Get keys of the given type as strings.
|
|
52
47
|
*
|
|
@@ -69,4 +64,7 @@ export type Stringified<ObjectType> = {
|
|
|
69
64
|
* //=> '1' | 'stringKey'
|
|
70
65
|
* ```
|
|
71
66
|
*/
|
|
72
|
-
|
|
67
|
+
type StringKeyOf<BaseType> = `${Extract<keyof BaseType, string | number>}`;
|
|
68
|
+
//#endregion
|
|
69
|
+
export { JsonValue as a, JsonPrimitive as i, JsonObject as n, StringKeyOf as o, JsonPointerPath as r, Stringified as s, JsonArray as t };
|
|
70
|
+
//# sourceMappingURL=json-BlaU0Pbq.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"json-BlaU0Pbq.d.cts","names":[],"sources":["../src/json.ts"],"sourcesContent":[],"mappings":";KAkBY,UAAA,aAAA,MAAU,GAAsB,SAAA,EAO5C,GAAY,UAKA,MAAA,IAXQ,SAWK,GAAA,SAAA,EAOzB;;;;AAA8D,KAZlD,SAAA,GAAY,SAYsC,EAAA,GAAA,SAZf,SAYe,EAAA;AAQ9D;AAsBA;AAwBA;KA7DY,aAAA;;;;;;KAOA,SAAA,GAAY,gBAAgB,aAAa;;;;;;;KAQzC,eAAA;;;;;;;;;;;;;;;;;;;;;KAsBA,8CAA8C;;;;;;;;;;;;;;;;;;;;;;;KAwB9C,2BACP,cAAc"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
//#region src/json.d.ts
|
|
2
|
+
type JsonObject = { [Key in string]: JsonValue } & { [Key in string]?: JsonValue | undefined };
|
|
3
|
+
/**
|
|
4
|
+
* Matches a JSON array.
|
|
5
|
+
*/
|
|
6
|
+
type JsonArray = JsonValue[] | readonly JsonValue[];
|
|
7
|
+
/**
|
|
8
|
+
* Matches any valid JSON primitive value.
|
|
9
|
+
*/
|
|
10
|
+
type JsonPrimitive = string | number | boolean | null;
|
|
11
|
+
/**
|
|
12
|
+
* Matches any valid JSON value.
|
|
13
|
+
*
|
|
14
|
+
* @see `Jsonify` if you need to transform a type to one that is assignable to `JsonValue`.
|
|
15
|
+
*/
|
|
16
|
+
type JsonValue = JsonPrimitive | JsonObject | JsonArray;
|
|
17
|
+
/**
|
|
18
|
+
* Matches a JSON pointer's path segments.
|
|
19
|
+
*
|
|
20
|
+
* @remarks
|
|
21
|
+
* These segments are used to navigate through the JSON object structure and point to a specific, referenced value.
|
|
22
|
+
*/
|
|
23
|
+
type JsonPointerPath = (string | number)[];
|
|
24
|
+
/**
|
|
25
|
+
* Create a type with the keys of the given type changed to `string` type.
|
|
26
|
+
*
|
|
27
|
+
* Use-case: Changing interface values to strings in order to use them in a form model.
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```
|
|
31
|
+
* import type {Stringified} from 'type-fest';
|
|
32
|
+
*
|
|
33
|
+
* type Car = {
|
|
34
|
+
* model: string;
|
|
35
|
+
* speed: number;
|
|
36
|
+
* }
|
|
37
|
+
*
|
|
38
|
+
* const carForm: Stringified<Car> = {
|
|
39
|
+
* model: 'Foo',
|
|
40
|
+
* speed: '101'
|
|
41
|
+
* };
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
type Stringified<ObjectType> = { [KeyType in keyof ObjectType]: string };
|
|
45
|
+
/**
|
|
46
|
+
* Get keys of the given type as strings.
|
|
47
|
+
*
|
|
48
|
+
* Number keys are converted to strings.
|
|
49
|
+
*
|
|
50
|
+
* Use-cases:
|
|
51
|
+
* - Get string keys from a type which may have number keys.
|
|
52
|
+
* - Makes it possible to index using strings retrieved from template types.
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* ```
|
|
56
|
+
* import type {StringKeyOf} from 'type-fest';
|
|
57
|
+
*
|
|
58
|
+
* type Foo = {
|
|
59
|
+
* 1: number,
|
|
60
|
+
* stringKey: string,
|
|
61
|
+
* };
|
|
62
|
+
*
|
|
63
|
+
* type StringKeysOfFoo = StringKeyOf<Foo>;
|
|
64
|
+
* //=> '1' | 'stringKey'
|
|
65
|
+
* ```
|
|
66
|
+
*/
|
|
67
|
+
type StringKeyOf<BaseType> = `${Extract<keyof BaseType, string | number>}`;
|
|
68
|
+
//#endregion
|
|
69
|
+
export { JsonValue as a, JsonPrimitive as i, JsonObject as n, StringKeyOf as o, JsonPointerPath as r, Stringified as s, JsonArray as t };
|
|
70
|
+
//# sourceMappingURL=json-C3wqh2t3.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"json-C3wqh2t3.d.mts","names":[],"sources":["../src/json.ts"],"sourcesContent":[],"mappings":";KAkBY,UAAA,aAAA,MAAU,GAAsB,SAAA,EAO5C,GAAY,UAKA,MAAA,IAXQ,SAWK,GAAA,SAAA,EAOzB;;;;AAA8D,KAZlD,SAAA,GAAY,SAYsC,EAAA,GAAA,SAZf,SAYe,EAAA;AAQ9D;AAsBA;AAwBA;KA7DY,aAAA;;;;;;KAOA,SAAA,GAAY,gBAAgB,aAAa;;;;;;;KAQzC,eAAA;;;;;;;;;;;;;;;;;;;;;KAsBA,8CAA8C;;;;;;;;;;;;;;;;;;;;;;;KAwB9C,2BACP,cAAc"}
|
package/dist/json.cjs
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
package/dist/json.d.cts
ADDED
package/dist/json.d.mts
ADDED
package/dist/json.mjs
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{};
|