mobx-tanstack-query-api 0.0.44 → 0.0.45
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/package.json +1 -1
- package/runtime/endpoint.d.ts +1 -1
- package/runtime/endpoint.js +1 -1
package/package.json
CHANGED
package/runtime/endpoint.d.ts
CHANGED
|
@@ -23,7 +23,7 @@ export declare class Endpoint<TResponse extends HttpResponse<any, any>, TInput e
|
|
|
23
23
|
request(...args: AllPropertiesOptional<TInput> extends true ? [input?: TInput] : [input: TInput]): Promise<TResponse>;
|
|
24
24
|
getQueryKey(...args: AllPropertiesOptional<TInput> extends true ? [input?: TInput] : [input: TInput]): any[];
|
|
25
25
|
/**
|
|
26
|
-
* segment - segment number in path
|
|
26
|
+
* segment - last segment number in path which need to crop for invalidate
|
|
27
27
|
* @example
|
|
28
28
|
* // endpoint path ["v1", "api", "kek"]
|
|
29
29
|
* endpoint.invalidateByPath({ segment: 1 }) // "v1/api*"
|
package/runtime/endpoint.js
CHANGED
|
@@ -56,7 +56,7 @@ export class Endpoint {
|
|
|
56
56
|
return [...this.configuration.path, this.configuration.operationId, input];
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
59
|
-
* segment - segment number in path
|
|
59
|
+
* segment - last segment number in path which need to crop for invalidate
|
|
60
60
|
* @example
|
|
61
61
|
* // endpoint path ["v1", "api", "kek"]
|
|
62
62
|
* endpoint.invalidateByPath({ segment: 1 }) // "v1/api*"
|