UNPKG

743 BTypeScriptView Raw
1import type { DocumentNode } from 'graphql';
2import type { TypedDocumentNode } from '@apollo/client/core';
3import type { Observable } from 'rxjs';
4import { Apollo } from './apollo';
5import type { MutationOptionsAlone, EmptyObject, MutationResult } from './types';
6import * as i0 from "@angular/core";
7export declare class Mutation<T = {}, V = EmptyObject> {
8 protected apollo: Apollo;
9 readonly document: DocumentNode | TypedDocumentNode<T, V>;
10 client: string;
11 constructor(apollo: Apollo);
12 mutate(variables?: V, options?: MutationOptionsAlone<T, V>): Observable<MutationResult<T>>;
13 static ɵfac: i0.ɵɵFactoryDeclaration<Mutation<any, any>, never>;
14 static ɵprov: i0.ɵɵInjectableDeclaration<Mutation<any, any>>;
15}