UNPKG

@graphql-inspector/patch

Version:

Applies changes output from @graphql-inspect/diff

6 lines (5 loc) 550 B
import { ASTNode } from 'graphql'; import { Change, ChangeType } from '@graphql-inspector/core'; import type { PatchConfig, PatchContext } from '../types'; export declare function objectTypeInterfaceAdded(change: Change<typeof ChangeType.ObjectTypeInterfaceAdded>, nodeByPath: Map<string, ASTNode>, config: PatchConfig, _context: PatchContext): void; export declare function objectTypeInterfaceRemoved(change: Change<typeof ChangeType.ObjectTypeInterfaceRemoved>, nodeByPath: Map<string, ASTNode>, config: PatchConfig, _context: PatchContext): void;