mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-13 08:31:10 +08:00
12 lines
387 B
TypeScript
12 lines
387 B
TypeScript
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: string
|
|
): OperationDefinitionNode;
|