@lsby/net-core 0.0.20-beta.1 → 0.0.20-beta.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/dist/cjs/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { 任意接口, 接口 } from './interface/interface.cjs';
|
|
2
2
|
export { 任意接口类型, 接口类型 } from './interface/interface-type.cjs';
|
|
3
|
-
export { 合并插件结果, 插件 } from './interface/plug.cjs';
|
|
3
|
+
export { 任意插件, 合并插件结果, 插件 } from './interface/plug.cjs';
|
|
4
4
|
export { 中文路径支持插件 } from './plugin/chinese-path.cjs';
|
|
5
5
|
export { 自定义数据插件 } from './plugin/custom-data.cjs';
|
|
6
6
|
export { JSON解析插件 } from './plugin/json.cjs';
|
|
@@ -11,6 +11,7 @@ declare class 插件<Obj extends z.AnyZodObject> {
|
|
|
11
11
|
获得实现(): typeof this.实现;
|
|
12
12
|
}
|
|
13
13
|
type 取值<A> = A extends () => Promise<插件<infer x>> ? x : never;
|
|
14
|
-
type 合并插件结果<Arr extends Array<() => Promise<插件<z.AnyZodObject>>>> = Arr extends [] ? {} : Arr extends [infer x, ...infer xs] ? x extends
|
|
14
|
+
type 合并插件结果<Arr extends Array<() => Promise<插件<z.AnyZodObject>>>> = Arr extends [] ? {} : Arr extends [infer x, ...infer xs] ? x extends infer obj ? xs extends Array<() => Promise<插件<z.AnyZodObject>>> ? obj extends (...args: any) => any ? z.infer<取值<obj>> & 合并插件结果<xs> : {} : {} : {} : {};
|
|
15
|
+
type 任意插件 = 插件<any>;
|
|
15
16
|
|
|
16
|
-
export { type 合并插件结果, 插件 };
|
|
17
|
+
export { type 任意插件, type 合并插件结果, 插件 };
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { 任意接口, 接口 } from './interface/interface.js';
|
|
2
2
|
export { 任意接口类型, 接口类型 } from './interface/interface-type.js';
|
|
3
|
-
export { 合并插件结果, 插件 } from './interface/plug.js';
|
|
3
|
+
export { 任意插件, 合并插件结果, 插件 } from './interface/plug.js';
|
|
4
4
|
export { 中文路径支持插件 } from './plugin/chinese-path.js';
|
|
5
5
|
export { 自定义数据插件 } from './plugin/custom-data.js';
|
|
6
6
|
export { JSON解析插件 } from './plugin/json.js';
|
package/dist/esm/index.js
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
JSON解析插件
|
|
3
|
-
} from "./chunk-B62YPABM.js";
|
|
4
1
|
import {
|
|
5
2
|
表单解析插件
|
|
6
3
|
} from "./chunk-5UUMGDDD.js";
|
|
4
|
+
import {
|
|
5
|
+
正确JSON结果,
|
|
6
|
+
正确结果,
|
|
7
|
+
正确自定义结果,
|
|
8
|
+
结果,
|
|
9
|
+
错误JSON结果,
|
|
10
|
+
错误结果
|
|
11
|
+
} from "./chunk-HARBKRRI.js";
|
|
7
12
|
import {
|
|
8
13
|
测试
|
|
9
14
|
} from "./chunk-I4WZG5LK.js";
|
|
@@ -16,23 +21,18 @@ import {
|
|
|
16
21
|
import {
|
|
17
22
|
接口
|
|
18
23
|
} from "./chunk-KRIDSMPV.js";
|
|
19
|
-
import {
|
|
20
|
-
正确JSON结果,
|
|
21
|
-
正确结果,
|
|
22
|
-
正确自定义结果,
|
|
23
|
-
结果,
|
|
24
|
-
错误JSON结果,
|
|
25
|
-
错误结果
|
|
26
|
-
} from "./chunk-HARBKRRI.js";
|
|
27
|
-
import "./chunk-ZSY7VBEW.js";
|
|
28
|
-
import "./chunk-LVYVPQ5V.js";
|
|
29
|
-
import "./chunk-BZOQHDXK.js";
|
|
30
24
|
import {
|
|
31
25
|
中文路径支持插件
|
|
32
26
|
} from "./chunk-XG4VZZOX.js";
|
|
33
27
|
import {
|
|
34
28
|
自定义数据插件
|
|
35
29
|
} from "./chunk-P6PGPAMW.js";
|
|
30
|
+
import {
|
|
31
|
+
JSON解析插件
|
|
32
|
+
} from "./chunk-B62YPABM.js";
|
|
33
|
+
import "./chunk-ZSY7VBEW.js";
|
|
34
|
+
import "./chunk-LVYVPQ5V.js";
|
|
35
|
+
import "./chunk-BZOQHDXK.js";
|
|
36
36
|
import {
|
|
37
37
|
插件
|
|
38
38
|
} from "./chunk-KSZE2DTR.js";
|
|
@@ -11,6 +11,7 @@ declare class 插件<Obj extends z.AnyZodObject> {
|
|
|
11
11
|
获得实现(): typeof this.实现;
|
|
12
12
|
}
|
|
13
13
|
type 取值<A> = A extends () => Promise<插件<infer x>> ? x : never;
|
|
14
|
-
type 合并插件结果<Arr extends Array<() => Promise<插件<z.AnyZodObject>>>> = Arr extends [] ? {} : Arr extends [infer x, ...infer xs] ? x extends
|
|
14
|
+
type 合并插件结果<Arr extends Array<() => Promise<插件<z.AnyZodObject>>>> = Arr extends [] ? {} : Arr extends [infer x, ...infer xs] ? x extends infer obj ? xs extends Array<() => Promise<插件<z.AnyZodObject>>> ? obj extends (...args: any) => any ? z.infer<取值<obj>> & 合并插件结果<xs> : {} : {} : {} : {};
|
|
15
|
+
type 任意插件 = 插件<any>;
|
|
15
16
|
|
|
16
|
-
export { type 合并插件结果, 插件 };
|
|
17
|
+
export { type 任意插件, type 合并插件结果, 插件 };
|