Skip to content

Commit

Permalink
feat(query): πŸ”₯ export MutationResult and CreateMutationOptions
Browse files Browse the repository at this point in the history
βœ… Closes: #152
  • Loading branch information
NetanelBasal committed Jan 29, 2024
1 parent 98ca3e8 commit 28a55d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions query/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
export { injectInfiniteQuery } from './lib/infinite-query';
export { injectIsFetching } from './lib/is-fetching';
export { injectIsMutating } from './lib/is-mutating';
export type { MutationResult, CreateMutationOptions } from './lib/mutation';
export { injectMutation } from './lib/mutation';
export { injectQuery } from './lib/query';
export { injectQueryClient, provideQueryClient } from './lib/query-client';
Expand Down
4 changes: 2 additions & 2 deletions query/src/lib/mutation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { isObservable, Observable, shareReplay } from 'rxjs';
import { toSignal } from '@angular/core/rxjs-interop';
import { toPromise } from './utils';

type CreateMutationOptions<
export type CreateMutationOptions<
TData = unknown,
TError = DefaultError,
TVariables = void,
Expand All @@ -24,7 +24,7 @@ type CreateMutationOptions<
mutationFn: (variables: TVariables) => Promise<TData> | Observable<TData>;
};

type MutationResult<
export type MutationResult<
TData = unknown,
TError = DefaultError,
TVariables = void,
Expand Down

0 comments on commit 28a55d1

Please sign in to comment.