@lsby/net-core 0.0.20 → 0.0.22

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.
Files changed (37) hide show
  1. package/dist/cjs/index.d.cts +3 -3
  2. package/dist/cjs/interface/interface-type.d.cts +3 -2
  3. package/dist/cjs/interface/interface.d.cts +1 -1
  4. package/dist/cjs/interface/plug.d.cts +18 -4
  5. package/dist/cjs/plugin/chinese-path.d.cts +1 -1
  6. package/dist/cjs/plugin/custom-data.d.cts +1 -1
  7. package/dist/cjs/plugin/json.d.cts +6 -2
  8. package/dist/cjs/plugin/urlencoded.d.cts +1 -1
  9. package/dist/cjs/server/server.d.cts +1 -1
  10. package/dist/cjs/test/test.d.cts +1 -1
  11. package/dist/esm/{chunk-ZBNSNYDR.js → chunk-B62YPABM.js} +1 -1
  12. package/dist/esm/{chunk-MHWX74JN.js → chunk-HARBKRRI.js} +1 -1
  13. package/dist/esm/{chunk-CYHD3PZ5.js → chunk-S3ITAYKY.js} +1 -1
  14. package/dist/esm/global/global.js +2 -2
  15. package/dist/esm/index.d.ts +3 -3
  16. package/dist/esm/index.js +14 -15
  17. package/dist/esm/interface/interface-type.d.ts +3 -2
  18. package/dist/esm/interface/interface.d.ts +1 -1
  19. package/dist/esm/interface/plug.d.ts +18 -4
  20. package/dist/esm/plugin/chinese-path.d.ts +1 -1
  21. package/dist/esm/plugin/custom-data.d.ts +1 -1
  22. package/dist/esm/plugin/json.d.ts +6 -2
  23. package/dist/esm/plugin/json.js +3 -3
  24. package/dist/esm/plugin/urlencoded.d.ts +1 -1
  25. package/dist/esm/result/result.js +3 -3
  26. package/dist/esm/server/server.d.ts +1 -1
  27. package/dist/esm/server/server.js +3 -3
  28. package/dist/esm/test/test.d.ts +1 -1
  29. package/package.json +2 -2
  30. package/dist/cjs/interface/plug-types.cjs +0 -18
  31. package/dist/cjs/interface/plug-types.d.cts +0 -4
  32. package/dist/cjs/plug-types-DMRZAwQh.d.cts +0 -19
  33. package/dist/esm/chunk-KASZLPG5.js +0 -0
  34. package/dist/esm/interface/plug-types.d.ts +0 -4
  35. package/dist/esm/interface/plug-types.js +0 -1
  36. package/dist/esm/plug-types-DHMTXXXT.d.ts +0 -19
  37. package/dist/esm/{chunk-TXWZ6QOA.js → chunk-ZSY7VBEW.js} +3 -3
@@ -1,9 +1,9 @@
1
1
  export { 任意接口, 接口 } from './interface/interface.cjs';
2
- export { 任意接口类型, 接口类型 } from './interface/interface-type.cjs';
3
- export { 任 as 任意插件, 取 as 取插件内部类型, 合 as 合并插件结果, a as 插件, 插 as 插件项类型 } from './plug-types-DMRZAwQh.cjs';
2
+ export { 任意接口类型, 接口类型, 获得接口插件们 } from './interface/interface-type.cjs';
3
+ export { 任意插件, 取插件内部类型, 合并插件结果, 插件, 插件项类型 } from './interface/plug.cjs';
4
4
  export { 中文路径支持插件 } from './plugin/chinese-path.cjs';
5
5
  export { 自定义数据插件 } from './plugin/custom-data.cjs';
6
- export { JSON解析插件 } from './plugin/json.cjs';
6
+ export { JSON解析插件, 从接口类型获得JSON参数, 任意JSON解析插件, 合并JSON插件结果 } from './plugin/json.cjs';
7
7
  export { 表单解析插件 } from './plugin/urlencoded.cjs';
8
8
  export { 正确JSON结果, 正确结果, 正确自定义结果, 结果, 错误JSON结果, 错误结果 } from './result/result.cjs';
9
9
  export { 服务器 } from './server/server.cjs';
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  import { 类型保持符号 as ______ } from '../types/type-hold.cjs';
3
- import { as _____ } from '../plug-types-DMRZAwQh.cjs';
3
+ import { 插件项类型 as _____ } from './plug.cjs';
4
4
  import 'express';
5
5
 
6
6
  declare class 接口类型<路径 extends string, 方法 extends 'get' | 'post', 插件们 extends Array<_____>, 正确结果类型 extends z.ZodTypeAny, 错误结果类型 extends z.ZodTypeAny> {
@@ -18,5 +18,6 @@ declare class 接口类型<路径 extends string, 方法 extends 'get' | 'post',
18
18
  获得错误结果类型(): 错误结果类型;
19
19
  }
20
20
  type 任意接口类型 = 接口类型<any, any, any, any, any>;
21
+ type 获得接口插件们<接口类型描述> = 接口类型描述 extends 接口类型<any, any, infer 插件, any, any> ? 插件 : never;
21
22
 
22
- export { type 任意接口类型, 接口类型 };
23
+ export { type 任意接口类型, 接口类型, type 获得接口插件们 };
@@ -1,7 +1,7 @@
1
1
  import { z } from 'zod';
2
2
  import { 正确结果 as ____$1, 错误结果 as ____$2 } from '../result/result.cjs';
3
3
  import { 接口类型 as ____ } from './interface-type.cjs';
4
- import { as _____, as ______ } from '../plug-types-DMRZAwQh.cjs';
4
+ import { 插件项类型 as _____, 合并插件结果 as ______ } from './plug.cjs';
5
5
  import 'express';
6
6
  import '../types/type-hold.cjs';
7
7
 
@@ -1,4 +1,18 @@
1
- import 'express';
2
- import 'zod';
3
- import '../types/type-hold.cjs';
4
- export { 任 as 任意插件, 合 as 合并插件结果, a as 插件 } from '../plug-types-DMRZAwQh.cjs';
1
+ import { Request, Response } from 'express';
2
+ import { z } from 'zod';
3
+ import { 类型保持符号 as ______ } from '../types/type-hold.cjs';
4
+
5
+ declare class 插件<Obj extends z.AnyZodObject> {
6
+ private 类型;
7
+ private 实现;
8
+ [______]: Obj;
9
+ constructor(类型: Obj, 实现: (req: Request, res: Response) => Promise<z.infer<Obj>>);
10
+ 获得类型(): typeof this.类型;
11
+ 获得实现(): typeof this.实现;
12
+ }
13
+ type 任意插件 = 插件<any>;
14
+ type 插件项类型 = 插件<z.AnyZodObject>;
15
+ type 取插件内部类型<A> = A extends 插件<infer x> ? x : never;
16
+ type 合并插件结果<Arr extends Array<插件项类型>> = Arr extends [] ? {} : Arr extends [infer x, ...infer xs] ? x extends infer 插件 ? xs extends Array<插件项类型> ? z.infer<取插件内部类型<插件>> & 合并插件结果<xs> : {} : {} : {};
17
+
18
+ export { type 任意插件, type 取插件内部类型, type 合并插件结果, 插件, type 插件项类型 };
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { a as __ } from '../plug-types-DMRZAwQh.cjs';
2
+ import { 插件 as __ } from '../interface/plug.cjs';
3
3
  import 'express';
4
4
  import '../types/type-hold.cjs';
5
5
 
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { a as __ } from '../plug-types-DMRZAwQh.cjs';
2
+ import { 插件 as __ } from '../interface/plug.cjs';
3
3
  import 'express';
4
4
  import '../types/type-hold.cjs';
5
5
 
@@ -1,6 +1,7 @@
1
1
  import express from 'express';
2
2
  import { z } from 'zod';
3
- import { a as __ } from '../plug-types-DMRZAwQh.cjs';
3
+ import { 获得接口插件们 as _______$1 } from '../interface/interface-type.cjs';
4
+ import { 插件 as __, 插件项类型 as _____, 取插件内部类型 as _______, 合并插件结果 as ______ } from '../interface/plug.cjs';
4
5
  import '../types/type-hold.cjs';
5
6
 
6
7
  declare class JSON解析插件<Result extends z.ZodObject<{
@@ -9,5 +10,8 @@ declare class JSON解析插件<Result extends z.ZodObject<{
9
10
  private log;
10
11
  constructor(t: Result, opt: Parameters<typeof express.json>[0]);
11
12
  }
13
+ type 任意JSON解析插件 = JSON解析插件<any>;
14
+ type 合并JSON插件结果<Arr extends Array<_____>> = Arr extends [] ? {} : Arr extends [infer x, ...infer xs] ? x extends infer 插件 ? xs extends Array<_____> ? 插件 extends 任意JSON解析插件 ? z.infer<_______<插件>>['body'] & ______<xs> : {} : {} : {} : {};
15
+ type 从接口类型获得JSON参数<接口类型描述> = 合并JSON插件结果<_______$1<接口类型描述>>;
12
16
 
13
- export { JSON解析插件 };
17
+ export { JSON解析插件, type 从接口类型获得JSON参数, type 任意JSON解析插件, type 合并JSON插件结果 };
@@ -1,6 +1,6 @@
1
1
  import express from 'express';
2
2
  import { z } from 'zod';
3
- import { a as __ } from '../plug-types-DMRZAwQh.cjs';
3
+ import { 插件 as __ } from '../interface/plug.cjs';
4
4
  import '../types/type-hold.cjs';
5
5
 
6
6
  declare class 表单解析插件<Result extends z.ZodObject<{
@@ -5,7 +5,7 @@ import '../result/result.cjs';
5
5
  import 'express';
6
6
  import '../types/type-hold.cjs';
7
7
  import '../interface/interface-type.cjs';
8
- import '../plug-types-DMRZAwQh.cjs';
8
+ import '../interface/plug.cjs';
9
9
 
10
10
  declare class 服务器 {
11
11
  private 接口们;
@@ -1,7 +1,7 @@
1
1
  import { 任意接口类型 as ______ } from '../interface/interface-type.cjs';
2
2
  import 'zod';
3
3
  import '../types/type-hold.cjs';
4
- import '../plug-types-DMRZAwQh.cjs';
4
+ import '../interface/plug.cjs';
5
5
  import 'express';
6
6
 
7
7
  declare class 测试 {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  GlobalLog
3
- } from "./chunk-TXWZ6QOA.js";
3
+ } from "./chunk-ZSY7VBEW.js";
4
4
  import {
5
5
  插件
6
6
  } from "./chunk-KSZE2DTR.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  GlobalLog
3
- } from "./chunk-TXWZ6QOA.js";
3
+ } from "./chunk-ZSY7VBEW.js";
4
4
 
5
5
  // src/result/result.ts
6
6
  var \u7ED3\u679C = class {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  GlobalLog
3
- } from "./chunk-TXWZ6QOA.js";
3
+ } from "./chunk-ZSY7VBEW.js";
4
4
 
5
5
  // src/server/server.ts
6
6
  import { networkInterfaces } from "node:os";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  GlobalLog,
3
3
  GlobalPackage
4
- } from "../chunk-TXWZ6QOA.js";
5
- import "../chunk-BZOQHDXK.js";
4
+ } from "../chunk-ZSY7VBEW.js";
6
5
  import "../chunk-LVYVPQ5V.js";
6
+ import "../chunk-BZOQHDXK.js";
7
7
  export {
8
8
  GlobalLog,
9
9
  GlobalPackage
@@ -1,9 +1,9 @@
1
1
  export { 任意接口, 接口 } from './interface/interface.js';
2
- export { 任意接口类型, 接口类型 } from './interface/interface-type.js';
3
- export { 任 as 任意插件, 取 as 取插件内部类型, 合 as 合并插件结果, a as 插件, 插 as 插件项类型 } from './plug-types-DHMTXXXT.js';
2
+ export { 任意接口类型, 接口类型, 获得接口插件们 } from './interface/interface-type.js';
3
+ export { 任意插件, 取插件内部类型, 合并插件结果, 插件, 插件项类型 } from './interface/plug.js';
4
4
  export { 中文路径支持插件 } from './plugin/chinese-path.js';
5
5
  export { 自定义数据插件 } from './plugin/custom-data.js';
6
- export { JSON解析插件 } from './plugin/json.js';
6
+ export { JSON解析插件, 从接口类型获得JSON参数, 任意JSON解析插件, 合并JSON插件结果 } from './plugin/json.js';
7
7
  export { 表单解析插件 } from './plugin/urlencoded.js';
8
8
  export { 正确JSON结果, 正确结果, 正确自定义结果, 结果, 错误JSON结果, 错误结果 } from './result/result.js';
9
9
  export { 服务器 } from './server/server.js';
package/dist/esm/index.js CHANGED
@@ -1,12 +1,21 @@
1
1
  import {
2
2
  JSON解析插件
3
- } from "./chunk-ZBNSNYDR.js";
3
+ } from "./chunk-B62YPABM.js";
4
4
  import {
5
5
  表单解析插件
6
6
  } from "./chunk-5UUMGDDD.js";
7
+ import {
8
+ 测试
9
+ } from "./chunk-I4WZG5LK.js";
7
10
  import {
8
11
  服务器
9
- } from "./chunk-CYHD3PZ5.js";
12
+ } from "./chunk-S3ITAYKY.js";
13
+ import {
14
+ 接口类型
15
+ } from "./chunk-SF5Z34AP.js";
16
+ import {
17
+ 接口
18
+ } from "./chunk-KRIDSMPV.js";
10
19
  import {
11
20
  正确JSON结果,
12
21
  正确结果,
@@ -14,20 +23,10 @@ import {
14
23
  结果,
15
24
  错误JSON结果,
16
25
  错误结果
17
- } from "./chunk-MHWX74JN.js";
18
- import {
19
- 测试
20
- } from "./chunk-I4WZG5LK.js";
21
- import "./chunk-TXWZ6QOA.js";
22
- import "./chunk-BZOQHDXK.js";
26
+ } from "./chunk-HARBKRRI.js";
27
+ import "./chunk-ZSY7VBEW.js";
23
28
  import "./chunk-LVYVPQ5V.js";
24
- import {
25
- 接口类型
26
- } from "./chunk-SF5Z34AP.js";
27
- import {
28
- 接口
29
- } from "./chunk-KRIDSMPV.js";
30
- import "./chunk-KASZLPG5.js";
29
+ import "./chunk-BZOQHDXK.js";
31
30
  import {
32
31
  中文路径支持插件
33
32
  } from "./chunk-XG4VZZOX.js";
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  import { 类型保持符号 as ______ } from '../types/type-hold.js';
3
- import { as _____ } from '../plug-types-DHMTXXXT.js';
3
+ import { 插件项类型 as _____ } from './plug.js';
4
4
  import 'express';
5
5
 
6
6
  declare class 接口类型<路径 extends string, 方法 extends 'get' | 'post', 插件们 extends Array<_____>, 正确结果类型 extends z.ZodTypeAny, 错误结果类型 extends z.ZodTypeAny> {
@@ -18,5 +18,6 @@ declare class 接口类型<路径 extends string, 方法 extends 'get' | 'post',
18
18
  获得错误结果类型(): 错误结果类型;
19
19
  }
20
20
  type 任意接口类型 = 接口类型<any, any, any, any, any>;
21
+ type 获得接口插件们<接口类型描述> = 接口类型描述 extends 接口类型<any, any, infer 插件, any, any> ? 插件 : never;
21
22
 
22
- export { type 任意接口类型, 接口类型 };
23
+ export { type 任意接口类型, 接口类型, type 获得接口插件们 };
@@ -1,7 +1,7 @@
1
1
  import { z } from 'zod';
2
2
  import { 正确结果 as ____$1, 错误结果 as ____$2 } from '../result/result.js';
3
3
  import { 接口类型 as ____ } from './interface-type.js';
4
- import { as _____, as ______ } from '../plug-types-DHMTXXXT.js';
4
+ import { 插件项类型 as _____, 合并插件结果 as ______ } from './plug.js';
5
5
  import 'express';
6
6
  import '../types/type-hold.js';
7
7
 
@@ -1,4 +1,18 @@
1
- import 'express';
2
- import 'zod';
3
- import '../types/type-hold.js';
4
- export { 任 as 任意插件, 合 as 合并插件结果, a as 插件 } from '../plug-types-DHMTXXXT.js';
1
+ import { Request, Response } from 'express';
2
+ import { z } from 'zod';
3
+ import { 类型保持符号 as ______ } from '../types/type-hold.js';
4
+
5
+ declare class 插件<Obj extends z.AnyZodObject> {
6
+ private 类型;
7
+ private 实现;
8
+ [______]: Obj;
9
+ constructor(类型: Obj, 实现: (req: Request, res: Response) => Promise<z.infer<Obj>>);
10
+ 获得类型(): typeof this.类型;
11
+ 获得实现(): typeof this.实现;
12
+ }
13
+ type 任意插件 = 插件<any>;
14
+ type 插件项类型 = 插件<z.AnyZodObject>;
15
+ type 取插件内部类型<A> = A extends 插件<infer x> ? x : never;
16
+ type 合并插件结果<Arr extends Array<插件项类型>> = Arr extends [] ? {} : Arr extends [infer x, ...infer xs] ? x extends infer 插件 ? xs extends Array<插件项类型> ? z.infer<取插件内部类型<插件>> & 合并插件结果<xs> : {} : {} : {};
17
+
18
+ export { type 任意插件, type 取插件内部类型, type 合并插件结果, 插件, type 插件项类型 };
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { a as __ } from '../plug-types-DHMTXXXT.js';
2
+ import { 插件 as __ } from '../interface/plug.js';
3
3
  import 'express';
4
4
  import '../types/type-hold.js';
5
5
 
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { a as __ } from '../plug-types-DHMTXXXT.js';
2
+ import { 插件 as __ } from '../interface/plug.js';
3
3
  import 'express';
4
4
  import '../types/type-hold.js';
5
5
 
@@ -1,6 +1,7 @@
1
1
  import express from 'express';
2
2
  import { z } from 'zod';
3
- import { a as __ } from '../plug-types-DHMTXXXT.js';
3
+ import { 获得接口插件们 as _______$1 } from '../interface/interface-type.js';
4
+ import { 插件 as __, 插件项类型 as _____, 取插件内部类型 as _______, 合并插件结果 as ______ } from '../interface/plug.js';
4
5
  import '../types/type-hold.js';
5
6
 
6
7
  declare class JSON解析插件<Result extends z.ZodObject<{
@@ -9,5 +10,8 @@ declare class JSON解析插件<Result extends z.ZodObject<{
9
10
  private log;
10
11
  constructor(t: Result, opt: Parameters<typeof express.json>[0]);
11
12
  }
13
+ type 任意JSON解析插件 = JSON解析插件<any>;
14
+ type 合并JSON插件结果<Arr extends Array<_____>> = Arr extends [] ? {} : Arr extends [infer x, ...infer xs] ? x extends infer 插件 ? xs extends Array<_____> ? 插件 extends 任意JSON解析插件 ? z.infer<_______<插件>>['body'] & ______<xs> : {} : {} : {} : {};
15
+ type 从接口类型获得JSON参数<接口类型描述> = 合并JSON插件结果<_______$1<接口类型描述>>;
12
16
 
13
- export { JSON解析插件 };
17
+ export { JSON解析插件, type 从接口类型获得JSON参数, type 任意JSON解析插件, type 合并JSON插件结果 };
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  JSON解析插件
3
- } from "../chunk-ZBNSNYDR.js";
4
- import "../chunk-TXWZ6QOA.js";
5
- import "../chunk-BZOQHDXK.js";
3
+ } from "../chunk-B62YPABM.js";
4
+ import "../chunk-ZSY7VBEW.js";
6
5
  import "../chunk-LVYVPQ5V.js";
6
+ import "../chunk-BZOQHDXK.js";
7
7
  import "../chunk-KSZE2DTR.js";
8
8
  export {
9
9
  JSON\u89E3\u6790\u63D2\u4EF6
@@ -1,6 +1,6 @@
1
1
  import express from 'express';
2
2
  import { z } from 'zod';
3
- import { a as __ } from '../plug-types-DHMTXXXT.js';
3
+ import { 插件 as __ } from '../interface/plug.js';
4
4
  import '../types/type-hold.js';
5
5
 
6
6
  declare class 表单解析插件<Result extends z.ZodObject<{
@@ -5,10 +5,10 @@ import {
5
5
  结果,
6
6
  错误JSON结果,
7
7
  错误结果
8
- } from "../chunk-MHWX74JN.js";
9
- import "../chunk-TXWZ6QOA.js";
10
- import "../chunk-BZOQHDXK.js";
8
+ } from "../chunk-HARBKRRI.js";
9
+ import "../chunk-ZSY7VBEW.js";
11
10
  import "../chunk-LVYVPQ5V.js";
11
+ import "../chunk-BZOQHDXK.js";
12
12
  export {
13
13
  \u6B63\u786EJSON\u7ED3\u679C,
14
14
  \u6B63\u786E\u7ED3\u679C,
@@ -5,7 +5,7 @@ import '../result/result.js';
5
5
  import 'express';
6
6
  import '../types/type-hold.js';
7
7
  import '../interface/interface-type.js';
8
- import '../plug-types-DHMTXXXT.js';
8
+ import '../interface/plug.js';
9
9
 
10
10
  declare class 服务器 {
11
11
  private 接口们;
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  服务器
3
- } from "../chunk-CYHD3PZ5.js";
4
- import "../chunk-TXWZ6QOA.js";
5
- import "../chunk-BZOQHDXK.js";
3
+ } from "../chunk-S3ITAYKY.js";
4
+ import "../chunk-ZSY7VBEW.js";
6
5
  import "../chunk-LVYVPQ5V.js";
6
+ import "../chunk-BZOQHDXK.js";
7
7
  export {
8
8
  \u670D\u52A1\u5668
9
9
  };
@@ -1,7 +1,7 @@
1
1
  import { 任意接口类型 as ______ } from '../interface/interface-type.js';
2
2
  import 'zod';
3
3
  import '../types/type-hold.js';
4
- import '../plug-types-DHMTXXXT.js';
4
+ import '../interface/plug.js';
5
5
  import 'express';
6
6
 
7
7
  declare class 测试 {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lsby/net-core",
3
- "version": "0.0.20",
3
+ "version": "0.0.22",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "require": "./dist/cjs/index.cjs",
@@ -51,4 +51,4 @@
51
51
  "peerDependencies": {
52
52
  "@types/express": "^4.17.21"
53
53
  }
54
- }
54
+ }
@@ -1,18 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __copyProps = (to, from, except, desc) => {
7
- if (from && typeof from === "object" || typeof from === "function") {
8
- for (let key of __getOwnPropNames(from))
9
- if (!__hasOwnProp.call(to, key) && key !== except)
10
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
- }
12
- return to;
13
- };
14
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
-
16
- // src/interface/plug-types.ts
17
- var plug_types_exports = {};
18
- module.exports = __toCommonJS(plug_types_exports);
@@ -1,4 +0,0 @@
1
- import 'zod';
2
- export { 取 as 取插件内部类型, 插 as 插件项类型 } from '../plug-types-DMRZAwQh.cjs';
3
- import 'express';
4
- import '../types/type-hold.cjs';
@@ -1,19 +0,0 @@
1
- import { z } from 'zod';
2
- import { Request, Response } from 'express';
3
- import { 类型保持符号 as ______ } from './types/type-hold.cjs';
4
-
5
- declare class 插件<Obj extends z.AnyZodObject> {
6
- private 类型;
7
- private 实现;
8
- [______]: Obj;
9
- constructor(类型: Obj, 实现: (req: Request, res: Response) => Promise<z.infer<Obj>>);
10
- 获得类型(): typeof this.类型;
11
- 获得实现(): typeof this.实现;
12
- }
13
- type 合并插件结果<Arr extends Array<插件项类型>> = Arr extends [] ? {} : Arr extends [infer x, ...infer xs] ? x extends infer obj ? xs extends Array<插件项类型> ? z.infer<取插件内部类型<obj>> & 合并插件结果<xs> : {} : {} : {};
14
- type 任意插件 = 插件<any>;
15
-
16
- type 插件项类型 = 插件<z.AnyZodObject>;
17
- type 取插件内部类型<A> = A extends 插件<infer x> ? x : never;
18
-
19
- export { 插件 as a, type 任意插件 as 任, type 取插件内部类型 as 取, type 合并插件结果 as 合, type 插件项类型 as 插 };
File without changes
@@ -1,4 +0,0 @@
1
- import 'zod';
2
- export { 取 as 取插件内部类型, 插 as 插件项类型 } from '../plug-types-DHMTXXXT.js';
3
- import 'express';
4
- import '../types/type-hold.js';
@@ -1 +0,0 @@
1
- import "../chunk-KASZLPG5.js";
@@ -1,19 +0,0 @@
1
- import { z } from 'zod';
2
- import { Request, Response } from 'express';
3
- import { 类型保持符号 as ______ } from './types/type-hold.js';
4
-
5
- declare class 插件<Obj extends z.AnyZodObject> {
6
- private 类型;
7
- private 实现;
8
- [______]: Obj;
9
- constructor(类型: Obj, 实现: (req: Request, res: Response) => Promise<z.infer<Obj>>);
10
- 获得类型(): typeof this.类型;
11
- 获得实现(): typeof this.实现;
12
- }
13
- type 合并插件结果<Arr extends Array<插件项类型>> = Arr extends [] ? {} : Arr extends [infer x, ...infer xs] ? x extends infer obj ? xs extends Array<插件项类型> ? z.infer<取插件内部类型<obj>> & 合并插件结果<xs> : {} : {} : {};
14
- type 任意插件 = 插件<any>;
15
-
16
- type 插件项类型 = 插件<z.AnyZodObject>;
17
- type 取插件内部类型<A> = A extends 插件<infer x> ? x : never;
18
-
19
- export { 插件 as a, type 任意插件 as 任, type 取插件内部类型 as 取, type 合并插件结果 as 合, type 插件项类型 as 插 };
@@ -1,9 +1,9 @@
1
- import {
2
- Log
3
- } from "./chunk-BZOQHDXK.js";
4
1
  import {
5
2
  Package
6
3
  } from "./chunk-LVYVPQ5V.js";
4
+ import {
5
+ Log
6
+ } from "./chunk-BZOQHDXK.js";
7
7
 
8
8
  // src/global/global.ts
9
9
  var GlobalPackage = class _GlobalPackage {