mirror of
https://github.com/CamHenlin/MessagesForMacintosh.git
synced 2024-12-03 04:52:40 +00:00
19 lines
935 B
TypeScript
19 lines
935 B
TypeScript
|
import { FieldNode, SelectionNode, DirectiveNode, DocumentNode, ArgumentNode } from 'graphql';
|
||
|
export declare type DirectiveInfo = {
|
||
|
[fieldName: string]: {
|
||
|
[argName: string]: any;
|
||
|
};
|
||
|
};
|
||
|
export declare function getDirectiveInfoFromField(field: FieldNode, variables: Object): DirectiveInfo;
|
||
|
export declare function shouldInclude(selection: SelectionNode, variables?: {
|
||
|
[name: string]: any;
|
||
|
}): boolean;
|
||
|
export declare function getDirectiveNames(doc: DocumentNode): string[];
|
||
|
export declare function hasDirectives(names: string[], doc: DocumentNode): boolean;
|
||
|
export declare function hasClientExports(document: DocumentNode): boolean;
|
||
|
export declare type InclusionDirectives = Array<{
|
||
|
directive: DirectiveNode;
|
||
|
ifArgument: ArgumentNode;
|
||
|
}>;
|
||
|
export declare function getInclusionDirectives(directives: ReadonlyArray<DirectiveNode>): InclusionDirectives;
|
||
|
//# sourceMappingURL=directives.d.ts.map
|