enlace 0.0.1-beta.16 → 0.0.1-beta.17
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/hook/index.d.mts +1 -1
- package/dist/hook/index.d.ts +1 -1
- package/dist/hook/index.js +1 -1
- package/dist/hook/index.mjs +1 -1
- package/package.json +1 -1
package/dist/hook/index.d.mts
CHANGED
|
@@ -68,7 +68,7 @@ type TrackedCall = {
|
|
|
68
68
|
method: string;
|
|
69
69
|
options: unknown;
|
|
70
70
|
};
|
|
71
|
-
declare const HTTP_METHODS: readonly ["get", "post", "put", "patch", "delete"];
|
|
71
|
+
declare const HTTP_METHODS: readonly ["$get", "$post", "$put", "$patch", "$delete"];
|
|
72
72
|
type ExtractData<T> = T extends (...args: any[]) => Promise<EnlaceResponse<infer D, unknown>> ? D : never;
|
|
73
73
|
type ExtractError<T> = T extends (...args: any[]) => Promise<EnlaceResponse<unknown, infer E>> ? E : never;
|
|
74
74
|
/** Discriminated union for hook response state - enables type narrowing via error check */
|
package/dist/hook/index.d.ts
CHANGED
|
@@ -68,7 +68,7 @@ type TrackedCall = {
|
|
|
68
68
|
method: string;
|
|
69
69
|
options: unknown;
|
|
70
70
|
};
|
|
71
|
-
declare const HTTP_METHODS: readonly ["get", "post", "put", "patch", "delete"];
|
|
71
|
+
declare const HTTP_METHODS: readonly ["$get", "$post", "$put", "$patch", "$delete"];
|
|
72
72
|
type ExtractData<T> = T extends (...args: any[]) => Promise<EnlaceResponse<infer D, unknown>> ? D : never;
|
|
73
73
|
type ExtractError<T> = T extends (...args: any[]) => Promise<EnlaceResponse<unknown, infer E>> ? E : never;
|
|
74
74
|
/** Discriminated union for hook response state - enables type narrowing via error check */
|
package/dist/hook/index.js
CHANGED
|
@@ -329,7 +329,7 @@ function useQueryMode(api, trackedCall, options) {
|
|
|
329
329
|
}
|
|
330
330
|
|
|
331
331
|
// src/react/types.ts
|
|
332
|
-
var HTTP_METHODS = ["get", "post", "put", "patch", "delete"];
|
|
332
|
+
var HTTP_METHODS = ["$get", "$post", "$put", "$patch", "$delete"];
|
|
333
333
|
|
|
334
334
|
// src/react/trackingProxy.ts
|
|
335
335
|
function createTrackingProxy(onTrack) {
|
package/dist/hook/index.mjs
CHANGED
|
@@ -304,7 +304,7 @@ function useQueryMode(api, trackedCall, options) {
|
|
|
304
304
|
}
|
|
305
305
|
|
|
306
306
|
// src/react/types.ts
|
|
307
|
-
var HTTP_METHODS = ["get", "post", "put", "patch", "delete"];
|
|
307
|
+
var HTTP_METHODS = ["$get", "$post", "$put", "$patch", "$delete"];
|
|
308
308
|
|
|
309
309
|
// src/react/trackingProxy.ts
|
|
310
310
|
function createTrackingProxy(onTrack) {
|