@graphql-inspector/patch
Version:
Applies changes output from @graphql-inspect/diff
11 lines (10 loc) • 1.52 kB
TypeScript
import { ASTNode } from 'graphql';
import { Change, ChangeType } from '@graphql-inspector/core';
import type { PatchConfig, PatchContext } from '../types.js';
export declare function inputFieldAdded(change: Change<typeof ChangeType.InputFieldAdded>, nodeByPath: Map<string, ASTNode>, config: PatchConfig, _context: PatchContext): void;
export declare function inputFieldRemoved(change: Change<typeof ChangeType.InputFieldRemoved>, nodeByPath: Map<string, ASTNode>, config: PatchConfig, _context: PatchContext): void;
export declare function inputFieldDescriptionAdded(change: Change<typeof ChangeType.InputFieldDescriptionAdded>, nodeByPath: Map<string, ASTNode>, config: PatchConfig, _context: PatchContext): void;
export declare function inputFieldTypeChanged(change: Change<typeof ChangeType.InputFieldTypeChanged>, nodeByPath: Map<string, ASTNode>, config: PatchConfig, _context: PatchContext): void;
export declare function inputFieldDefaultValueChanged(change: Change<typeof ChangeType.InputFieldDefaultValueChanged>, nodeByPath: Map<string, ASTNode>, config: PatchConfig, _context: PatchContext): void;
export declare function inputFieldDescriptionChanged(change: Change<typeof ChangeType.InputFieldDescriptionChanged>, nodeByPath: Map<string, ASTNode>, config: PatchConfig, _context: PatchContext): void;
export declare function inputFieldDescriptionRemoved(change: Change<typeof ChangeType.InputFieldDescriptionRemoved>, nodeByPath: Map<string, ASTNode>, config: PatchConfig, _context: PatchContext): void;