@hz-9/a5-core 0.2.0-alpha.24 → 0.2.0-alpha.26
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/dist/all.d.ts +30 -0
- package/dist/interface/index.d.ts +1 -0
- package/dist/interface/index.js +1 -0
- package/dist/interface/json.d.ts +27 -0
- package/dist/interface/json.js +3 -0
- package/package.json +1 -1
package/dist/all.d.ts
CHANGED
|
@@ -635,6 +635,36 @@ export declare type IsFalse<T extends false> = T;
|
|
|
635
635
|
*/
|
|
636
636
|
export declare type IsTrue<T extends true> = T;
|
|
637
637
|
|
|
638
|
+
/**
|
|
639
|
+
* JSON 数组类型
|
|
640
|
+
*
|
|
641
|
+
* 表示 JSON 数组结构,元素为任意 JSON 值
|
|
642
|
+
*
|
|
643
|
+
* @public
|
|
644
|
+
*/
|
|
645
|
+
export declare interface JsonArray extends Array<JsonValue> {
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
/**
|
|
649
|
+
* JSON 对象类型
|
|
650
|
+
*
|
|
651
|
+
* 表示 JSON 对象结构,键为字符串,值为任意 JSON 值
|
|
652
|
+
*
|
|
653
|
+
* @public
|
|
654
|
+
*/
|
|
655
|
+
export declare interface JsonObject {
|
|
656
|
+
[key: string]: JsonValue;
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
/**
|
|
660
|
+
* JSON 值类型
|
|
661
|
+
*
|
|
662
|
+
* 表示所有合法的 JSON 值类型,包括基础类型、对象和数组
|
|
663
|
+
*
|
|
664
|
+
* @public
|
|
665
|
+
*/
|
|
666
|
+
export declare type JsonValue = string | number | boolean | null | JsonObject | JsonArray;
|
|
667
|
+
|
|
638
668
|
/**
|
|
639
669
|
* 包加载工具类
|
|
640
670
|
* 用于统一处理可选依赖的动态导入
|
package/dist/interface/index.js
CHANGED
|
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./base"), exports);
|
|
18
18
|
__exportStar(require("./http"), exports);
|
|
19
|
+
__exportStar(require("./json"), exports);
|
|
19
20
|
__exportStar(require("./provide-token"), exports);
|
|
20
21
|
__exportStar(require("./type-challenges.utils"), exports);
|
|
21
22
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* JSON 值类型
|
|
3
|
+
*
|
|
4
|
+
* 表示所有合法的 JSON 值类型,包括基础类型、对象和数组
|
|
5
|
+
*
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type JsonValue = string | number | boolean | null | JsonObject | JsonArray;
|
|
9
|
+
/**
|
|
10
|
+
* JSON 对象类型
|
|
11
|
+
*
|
|
12
|
+
* 表示 JSON 对象结构,键为字符串,值为任意 JSON 值
|
|
13
|
+
*
|
|
14
|
+
* @public
|
|
15
|
+
*/
|
|
16
|
+
export interface JsonObject {
|
|
17
|
+
[key: string]: JsonValue;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* JSON 数组类型
|
|
21
|
+
*
|
|
22
|
+
* 表示 JSON 数组结构,元素为任意 JSON 值
|
|
23
|
+
*
|
|
24
|
+
* @public
|
|
25
|
+
*/
|
|
26
|
+
export interface JsonArray extends Array<JsonValue> {
|
|
27
|
+
}
|