UNPKG

477 BTypeScriptView Raw
1import { DocumentNode } from 'graphql';
2export declare type DirectiveArgs = {
3 [name: string]: any;
4};
5export declare type DirectiveUsage = {
6 name: string;
7 args: DirectiveArgs;
8};
9export declare type TypeAndFieldToDirectives = {
10 [typeAndField: string]: DirectiveUsage[];
11};
12interface Options {
13 includeInputTypes?: boolean;
14}
15export declare function getFieldsWithDirectives(documentNode: DocumentNode, options?: Options): TypeAndFieldToDirectives;
16export {};