@graphql-inspector/patch
Version:
Applies changes output from @graphql-inspect/diff
9 lines (8 loc) • 1.06 kB
TypeScript
import { ASTNode } from 'graphql';
import { Change, ChangeType } from '@graphql-inspector/core';
import type { PatchConfig, PatchContext } from '../types';
export declare function typeAdded(change: Change<typeof ChangeType.TypeAdded>, nodeByPath: Map<string, ASTNode>, config: PatchConfig, _context: PatchContext): void;
export declare function typeRemoved(change: Change<typeof ChangeType.TypeRemoved>, nodeByPath: Map<string, ASTNode>, config: PatchConfig, _context: PatchContext): void;
export declare function typeDescriptionAdded(change: Change<typeof ChangeType.TypeDescriptionAdded>, nodeByPath: Map<string, ASTNode>, config: PatchConfig, _context: PatchContext): void;
export declare function typeDescriptionChanged(change: Change<typeof ChangeType.TypeDescriptionChanged>, nodeByPath: Map<string, ASTNode>, config: PatchConfig, _context: PatchContext): void;
export declare function typeDescriptionRemoved(change: Change<typeof ChangeType.TypeDescriptionRemoved>, nodeByPath: Map<string, ASTNode>, config: PatchConfig, _context: PatchContext): void;