1 | import { ASTNode, visit } from 'graphql';
|
2 | type VisitFn = typeof visit;
|
3 | type NewVisitor = Partial<Parameters<VisitFn>[1]>;
|
4 | type OldVisitor = {
|
5 | enter?: Partial<Record<keyof NewVisitor, NonNullable<NewVisitor[keyof NewVisitor]>['enter']>>;
|
6 | leave?: Partial<Record<keyof NewVisitor, NonNullable<NewVisitor[keyof NewVisitor]>['leave']>>;
|
7 | } & NewVisitor;
|
8 | export declare function oldVisit(root: ASTNode, { enter: enterVisitors, leave: leaveVisitors, ...newVisitor }: OldVisitor): any;
|
9 | export {};
|