@lsby/net-core 0.0.19 → 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 +1 -1
- package/dist/cjs/interface/interface-type.d.cts +1 -1
- package/dist/cjs/interface/interface.d.cts +1 -1
- package/dist/cjs/interface/plug.d.cts +4 -2
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +3 -3
- package/dist/esm/interface/interface-type.d.ts +1 -1
- package/dist/esm/interface/interface.d.ts +1 -1
- package/dist/esm/interface/plug.d.ts +4 -2
- package/package.json +1 -1
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';
|
|
@@ -3,7 +3,7 @@ import { 类型保持符号 as ______ } from '../types/type-hold.cjs';
|
|
|
3
3
|
import { 插件 as __ } from './plug.cjs';
|
|
4
4
|
import 'express';
|
|
5
5
|
|
|
6
|
-
declare class 接口类型<路径 extends string, 方法 extends 'get' | 'post', 插件们 extends Array<__<z.AnyZodObject
|
|
6
|
+
declare class 接口类型<路径 extends string, 方法 extends 'get' | 'post', 插件们 extends Array<() => Promise<__<z.AnyZodObject>>>, 正确结果类型 extends z.ZodTypeAny, 错误结果类型 extends z.ZodTypeAny> {
|
|
7
7
|
private 路径;
|
|
8
8
|
private 方法;
|
|
9
9
|
private 插件们;
|
|
@@ -5,7 +5,7 @@ import { 插件 as __, 合并插件结果 as ______ } from './plug.cjs';
|
|
|
5
5
|
import 'express';
|
|
6
6
|
import '../types/type-hold.cjs';
|
|
7
7
|
|
|
8
|
-
declare class 接口<路径 extends string, 方法 extends 'get' | 'post', 插件们 extends Array<__<z.AnyZodObject
|
|
8
|
+
declare class 接口<路径 extends string, 方法 extends 'get' | 'post', 插件们 extends Array<() => Promise<__<z.AnyZodObject>>>, 正确返回类型 extends z.ZodTypeAny, 错误返回类型 extends z.ZodTypeAny> {
|
|
9
9
|
private 接口类型;
|
|
10
10
|
private 实现;
|
|
11
11
|
constructor(接口类型: ____<路径, 方法, 插件们, 正确返回类型, 错误返回类型>, 实现: (插件结果: ______<插件们>) => Promise<____$1<z.infer<正确返回类型>> | ____$2<z.infer<错误返回类型>>>);
|
|
@@ -10,6 +10,8 @@ declare class 插件<Obj extends z.AnyZodObject> {
|
|
|
10
10
|
获得类型(): typeof this.类型;
|
|
11
11
|
获得实现(): typeof this.实现;
|
|
12
12
|
}
|
|
13
|
-
type
|
|
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 infer obj ? xs extends Array<() => Promise<插件<z.AnyZodObject>>> ? obj extends (...args: any) => any ? z.infer<取值<obj>> & 合并插件结果<xs> : {} : {} : {} : {};
|
|
15
|
+
type 任意插件 = 插件<any>;
|
|
14
16
|
|
|
15
|
-
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,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
表单解析插件
|
|
3
3
|
} from "./chunk-5UUMGDDD.js";
|
|
4
|
-
import {
|
|
5
|
-
服务器
|
|
6
|
-
} from "./chunk-S3ITAYKY.js";
|
|
7
4
|
import {
|
|
8
5
|
正确JSON结果,
|
|
9
6
|
正确结果,
|
|
@@ -15,6 +12,9 @@ import {
|
|
|
15
12
|
import {
|
|
16
13
|
测试
|
|
17
14
|
} from "./chunk-I4WZG5LK.js";
|
|
15
|
+
import {
|
|
16
|
+
服务器
|
|
17
|
+
} from "./chunk-S3ITAYKY.js";
|
|
18
18
|
import {
|
|
19
19
|
接口类型
|
|
20
20
|
} from "./chunk-SF5Z34AP.js";
|
|
@@ -3,7 +3,7 @@ import { 类型保持符号 as ______ } from '../types/type-hold.js';
|
|
|
3
3
|
import { 插件 as __ } from './plug.js';
|
|
4
4
|
import 'express';
|
|
5
5
|
|
|
6
|
-
declare class 接口类型<路径 extends string, 方法 extends 'get' | 'post', 插件们 extends Array<__<z.AnyZodObject
|
|
6
|
+
declare class 接口类型<路径 extends string, 方法 extends 'get' | 'post', 插件们 extends Array<() => Promise<__<z.AnyZodObject>>>, 正确结果类型 extends z.ZodTypeAny, 错误结果类型 extends z.ZodTypeAny> {
|
|
7
7
|
private 路径;
|
|
8
8
|
private 方法;
|
|
9
9
|
private 插件们;
|
|
@@ -5,7 +5,7 @@ import { 插件 as __, 合并插件结果 as ______ } from './plug.js';
|
|
|
5
5
|
import 'express';
|
|
6
6
|
import '../types/type-hold.js';
|
|
7
7
|
|
|
8
|
-
declare class 接口<路径 extends string, 方法 extends 'get' | 'post', 插件们 extends Array<__<z.AnyZodObject
|
|
8
|
+
declare class 接口<路径 extends string, 方法 extends 'get' | 'post', 插件们 extends Array<() => Promise<__<z.AnyZodObject>>>, 正确返回类型 extends z.ZodTypeAny, 错误返回类型 extends z.ZodTypeAny> {
|
|
9
9
|
private 接口类型;
|
|
10
10
|
private 实现;
|
|
11
11
|
constructor(接口类型: ____<路径, 方法, 插件们, 正确返回类型, 错误返回类型>, 实现: (插件结果: ______<插件们>) => Promise<____$1<z.infer<正确返回类型>> | ____$2<z.infer<错误返回类型>>>);
|
|
@@ -10,6 +10,8 @@ declare class 插件<Obj extends z.AnyZodObject> {
|
|
|
10
10
|
获得类型(): typeof this.类型;
|
|
11
11
|
获得实现(): typeof this.实现;
|
|
12
12
|
}
|
|
13
|
-
type
|
|
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 infer obj ? xs extends Array<() => Promise<插件<z.AnyZodObject>>> ? obj extends (...args: any) => any ? z.infer<取值<obj>> & 合并插件结果<xs> : {} : {} : {} : {};
|
|
15
|
+
type 任意插件 = 插件<any>;
|
|
14
16
|
|
|
15
|
-
export { type 合并插件结果, 插件 };
|
|
17
|
+
export { type 任意插件, type 合并插件结果, 插件 };
|