Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
12 lines
458 B
Plaintext
12 lines
458 B
Plaintext
import type { Maybe } from '../jsutils/Maybe';
|
|
import type { 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 declare function getOperationAST(
|
|
documentAST: DocumentNode,
|
|
operationName?: Maybe<string>,
|
|
): Maybe<OperationDefinitionNode>;
|