zf-dbs 0.1.20 → 0.1.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.
@@ -1,4 +1,4 @@
1
- import { z as p, z as e } from "../chunks/BpV-I7S3.mjs";
1
+ import { z as p, z as e } from "../chunks/I5OO2p9h.mjs";
2
2
  export {
3
3
  p as ZfApp,
4
4
  e as default
package/dist/index.d.ts CHANGED
@@ -12,7 +12,6 @@ import { PropType as PropType_2 } from 'vue';
12
12
  import { PublicProps } from 'vue';
13
13
  import { Ref as Ref_2 } from 'vue';
14
14
  import { RequestInstance } from 'zf-utilz';
15
- import { RequestResult } from 'zf-utilz';
16
15
  import { ShallowRef } from 'vue';
17
16
  import { UnwrapNestedRefs } from 'vue';
18
17
 
@@ -119,10 +118,14 @@ declare type DefineAppConfigOptions = Partial<AppConfig>;
119
118
 
120
119
  export { defineRequest }
121
120
 
122
- declare type DefineService = <Params = undefined, Result = RequestResult>(handle: Service<Params, Result>) => Service<Params, Result>;
121
+ declare type DefineService = <Params = EmptyParamsType, Result = EmptyResultType>(handle: ServiceHandle<Params, Result>) => ServiceHandle<Params, Result>;
123
122
 
124
123
  export declare const defineService: DefineService;
125
124
 
125
+ declare type EmptyParamsType = undefined;
126
+
127
+ declare type EmptyResultType = any;
128
+
126
129
  /**
127
130
  * 使用配置
128
131
  */
@@ -154,11 +157,11 @@ declare class Polling<T = any> {
154
157
 
155
158
  export declare const request: RequestInstance;
156
159
 
157
- declare type Service<Params = Record<string, unknown>, Result = RequestResult> = Params extends undefined ? ServiceNoParams<Params, Result> : ServiceHasParams<Params, Result>;
160
+ declare type ServiceHandle<Params, Result> = EmptyParamsType extends Params ? ServiceHandleNoParams<Result> : ServiceHandleHasParams<Params, Result>;
158
161
 
159
- declare type ServiceHasParams<Params = Record<string, unknown>, Result = RequestResult> = (params: Params, config?: Record<string, unknown>) => Promise<Result>;
162
+ declare type ServiceHandleHasParams<Params, Result> = (params: Params, config?: Record<string, any>) => Promise<Result>;
160
163
 
161
- declare type ServiceNoParams<Params = Record<string, unknown>, Result = RequestResult> = (params?: Params, config?: Record<string, unknown>) => Promise<Result>;
164
+ declare type ServiceHandleNoParams<Result> = (params?: any, config?: Record<string, any>) => Promise<Result>;
162
165
 
163
166
  export declare class Ue extends EventListener_2 {
164
167
  /**
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { u as c, a as i, g as a, b as p, e as f, _ as g } from "./chunks/BpV-I7S3.mjs";
2
- import { z as H, d as $, c as J } from "./chunks/BpV-I7S3.mjs";
1
+ import { u as c, a as i, g as a, m as p, t as f, _ as g } from "./chunks/I5OO2p9h.mjs";
2
+ import { z as H, d as $, b as J } from "./chunks/I5OO2p9h.mjs";
3
3
  import { _ as d } from "./chunks/CRrp0zFe.mjs";
4
4
  import { _ as h } from "./chunks/BHHE86vT.mjs";
5
5
  import { z as R } from "./chunks/BHHE86vT.mjs";
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "zf-dbs",
3
3
  "type": "module",
4
4
  "description": "",
5
- "version": "0.1.20",
5
+ "version": "0.1.22",
6
6
  "main": "./dist/index.mjs",
7
7
  "module": "./dist/index.mjs",
8
8
  "types": "./dist/index.d.ts",
@@ -37,7 +37,7 @@
37
37
  "qs": "^6.12.1",
38
38
  "vue": "^3.4.23",
39
39
  "vue-router": "^4.3.2",
40
- "zf-utilz": "^0.1.15"
40
+ "zf-utilz": "^0.1.26"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@types/node": "^20.12.7",