UNPKG

@graphql-inspector/action

Version:

GraphQL Inspector functionality for GitHub Actions

16 lines (15 loc) 430 B
import { FragmentDefinitionNode, OperationDefinitionNode, Source } from 'graphql'; export interface Document { source: Source; fragments: { node: FragmentDefinitionNode; source: string; }[]; operations: { node: OperationDefinitionNode; source: string; }[]; hasFragments: boolean; hasOperations: boolean; } export declare function readDocument(source: Source): Document;