UNPKG

@graphql-inspector/patch

Version:

Applies changes output from @graphql-inspect/diff

16 lines (15 loc) 2.51 kB
import { ASTNode } from 'graphql'; import { Change, ChangeType } from '@graphql-inspector/core'; import { PatchConfig, PatchContext } from '../types.js'; export declare function directiveAdded(change: Change<typeof ChangeType.DirectiveAdded>, nodeByPath: Map<string, ASTNode>, config: PatchConfig, _context: PatchContext): void; export declare function directiveRemoved(change: Change<typeof ChangeType.DirectiveRemoved>, nodeByPath: Map<string, ASTNode>, config: PatchConfig, _context: PatchContext): void; export declare function directiveArgumentAdded(change: Change<typeof ChangeType.DirectiveArgumentAdded>, nodeByPath: Map<string, ASTNode>, config: PatchConfig, _context: PatchContext): void; export declare function directiveArgumentRemoved(change: Change<typeof ChangeType.DirectiveArgumentRemoved>, nodeByPath: Map<string, ASTNode>, config: PatchConfig, _context: PatchContext): void; export declare function directiveLocationAdded(change: Change<typeof ChangeType.DirectiveLocationAdded>, nodeByPath: Map<string, ASTNode>, config: PatchConfig, _context: PatchContext): void; export declare function directiveLocationRemoved(change: Change<typeof ChangeType.DirectiveLocationRemoved>, nodeByPath: Map<string, ASTNode>, config: PatchConfig, _context: PatchContext): void; export declare function directiveDescriptionChanged(change: Change<typeof ChangeType.DirectiveDescriptionChanged>, nodeByPath: Map<string, ASTNode>, config: PatchConfig, _context: PatchContext): void; export declare function directiveArgumentDefaultValueChanged(change: Change<typeof ChangeType.DirectiveArgumentDefaultValueChanged>, nodeByPath: Map<string, ASTNode>, config: PatchConfig, _context: PatchContext): void; export declare function directiveArgumentDescriptionChanged(change: Change<typeof ChangeType.DirectiveArgumentDescriptionChanged>, nodeByPath: Map<string, ASTNode>, config: PatchConfig, _context: PatchContext): void; export declare function directiveArgumentTypeChanged(change: Change<typeof ChangeType.DirectiveArgumentTypeChanged>, nodeByPath: Map<string, ASTNode>, config: PatchConfig, _context: PatchContext): void; export declare function directiveRepeatableAdded(change: Change<typeof ChangeType.DirectiveRepeatableAdded>, nodeByPath: Map<string, ASTNode>, config: PatchConfig, _context: PatchContext): void; export declare function directiveRepeatableRemoved(change: Change<typeof ChangeType.DirectiveRepeatableRemoved>, nodeByPath: Map<string, ASTNode>, config: PatchConfig, _context: PatchContext): void;