github-pages-deploy-action/node_modules/graphql/utilities/getOperationAST.d.ts

13 lines
436 B
TypeScript
Raw Normal View History

2020-03-07 11:45:40 +08:00
import Maybe from '../tsutils/Maybe';
import { DocumentNode, OperationDefinitionNode } from '../language/ast';
/**
* Returns an operation AST given a document AST and optionally an operation
* name. If a name is not provided, an operation is only returned if only one is
* provided in the document.
*/
export function getOperationAST(
documentAST: DocumentNode,
operationName: Maybe<string>,
): Maybe<OperationDefinitionNode>;