Skip to content

Commit

Permalink
fix(types): remove unnecessary omitted field of MutationObserverOptio…
Browse files Browse the repository at this point in the history
…ns (#6907)

* fix(angular-query): remove unnecessary omit parameter

* fix(*): remove unnecessary omit parameter

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
  • Loading branch information
manudeli and TkDodo committed Feb 17, 2024
1 parent 137233b commit d9d73ff
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/angular-query-experimental/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export interface CreateMutationOptions<
TContext = unknown,
> extends Omit<
MutationObserverOptions<TData, TError, TVariables, TContext>,
'_defaulted' | 'variables'
'_defaulted'
> {}

export type CreateMutateFunction<
Expand Down
2 changes: 1 addition & 1 deletion packages/react-query/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export interface UseMutationOptions<
TContext = unknown,
> extends Omit<
MutationObserverOptions<TData, TError, TVariables, TContext>,
'_defaulted' | 'variables'
'_defaulted'
> {}

export type UseMutateFunction<
Expand Down
2 changes: 1 addition & 1 deletion packages/solid-query/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export interface SolidMutationOptions<
TContext = unknown,
> extends Omit<
MutationObserverOptions<TData, TError, TVariables, TContext>,
'_defaulted' | 'variables'
'_defaulted'
> {}

export type CreateMutationOptions<
Expand Down
2 changes: 1 addition & 1 deletion packages/svelte-query/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export type CreateMutationOptions<
> = StoreOrVal<
Omit<
MutationObserverOptions<TData, TError, TVariables, TContext>,
'_defaulted' | 'variables'
'_defaulted'
>
>

Expand Down

0 comments on commit d9d73ff

Please sign in to comment.