@mmstack/resource 19.7.1 → 19.7.2

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.
@@ -193,7 +193,6 @@ export type MutationResourceRef<TResult, TMutation = TResult, TICTX = void> = Om
193
193
  * @typeParam TMutation - The type of the mutation value (the request body).
194
194
  * @typeParam TICTX - The type of the initial context value passed to `onMutate`.
195
195
  * @typeParam TCTX - The type of the context value returned by `onMutate`.
196
- * @typeParam TMethod - The HTTP method to be used for the mutation (defaults to `HttpResourceRequest['method']`).
197
196
  * @returns A `MutationResourceRef` instance, which provides methods for triggering the mutation
198
197
  * and observing its status.
199
198
  *
@@ -227,9 +226,4 @@ export type MutationResourceRef<TResult, TMutation = TResult, TICTX = void> = Om
227
226
  * );
228
227
  * ```
229
228
  */
230
- export declare function mutationResource<TResult, TRaw = TResult, TMutation = TResult, TCTX = void, TICTX = TCTX>(request: (params: TMutation) => (Omit<HttpResourceRequest, 'body' | 'method'> & {
231
- method: 'DELETE' | 'delete';
232
- }) | undefined | void, options0?: MutationResourceOptions<TResult, TRaw, TMutation, TCTX, TICTX>): MutationResourceRef<TResult, TMutation, TICTX>;
233
- export declare function mutationResource<TResult, TRaw = TResult, TMutation = TResult, TCTX = void, TICTX = TCTX>(request: (params: TMutation) => (Omit<HttpResourceRequest, 'body'> & {
234
- body: TMutation;
235
- }) | undefined | void, options0?: MutationResourceOptions<TResult, TRaw, TMutation, TCTX, TICTX>): MutationResourceRef<TResult, TMutation, TICTX>;
229
+ export declare function mutationResource<TResult, TRaw = TResult, TMutation = TResult, TCTX = void, TICTX = TCTX>(request: (params: TMutation) => HttpResourceRequest | undefined | void, options0?: MutationResourceOptions<TResult, TRaw, TMutation, TCTX, TICTX>): MutationResourceRef<TResult, TMutation, TICTX>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mmstack/resource",
3
- "version": "19.7.1",
3
+ "version": "19.7.2",
4
4
  "keywords": [
5
5
  "angular",
6
6
  "signals",