zf-dbs 0.1.20 → 0.1.21

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,7 +118,7 @@ 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 = any, Result = any>(handle: ServiceHandle<Params, Result>) => ServiceHandle<Params, Result>;
123
122
 
124
123
  export declare const defineService: DefineService;
125
124
 
@@ -154,11 +153,11 @@ declare class Polling<T = any> {
154
153
 
155
154
  export declare const request: RequestInstance;
156
155
 
157
- declare type Service<Params = Record<string, unknown>, Result = RequestResult> = Params extends undefined ? ServiceNoParams<Params, Result> : ServiceHasParams<Params, Result>;
156
+ declare type ServiceHandle<Params = any, Result = any> = undefined extends Params ? ServiceHandleNoParams<Params, Result> : ServiceHandleHasParams<Params, Result>;
158
157
 
159
- declare type ServiceHasParams<Params = Record<string, unknown>, Result = RequestResult> = (params: Params, config?: Record<string, unknown>) => Promise<Result>;
158
+ declare type ServiceHandleHasParams<Params = any, Result = any> = (params: Params, config?: Record<string, any>) => Promise<Result>;
160
159
 
161
- declare type ServiceNoParams<Params = Record<string, unknown>, Result = RequestResult> = (params?: Params, config?: Record<string, unknown>) => Promise<Result>;
160
+ declare type ServiceHandleNoParams<Params = any, Result = any> = (params?: Params, config?: Record<string, any>) => Promise<Result>;
162
161
 
163
162
  export declare class Ue extends EventListener_2 {
164
163
  /**
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.21",
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.23"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@types/node": "^20.12.7",