UNPKG

@graphql-inspector/patch

Version:

Applies changes output from @graphql-inspect/diff

7 lines (6 loc) 711 B
import { ASTNode } from 'graphql'; import { Change, ChangeType } from '@graphql-inspector/core'; import type { PatchConfig, PatchContext } from '../types'; export declare function enumValueRemoved(change: Change<typeof ChangeType.EnumValueRemoved>, nodeByPath: Map<string, ASTNode>, config: PatchConfig, _context: PatchContext): void; export declare function enumValueAdded(change: Change<typeof ChangeType.EnumValueAdded>, nodeByPath: Map<string, ASTNode>, config: PatchConfig, _context: PatchContext): void; export declare function enumValueDescriptionChanged(change: Change<typeof ChangeType.EnumValueDescriptionChanged>, nodeByPath: Map<string, ASTNode>, config: PatchConfig, _context: PatchContext): void;