Mirror: The spec-compliant minimum of client-side GraphQL.

Fix slow type

Changed files
+2 -2
src
+2 -2
src/helpers.ts
··· 1 - import type { Location } from './types'; 1 + import type { Location, Source as _Source } from './types'; 2 2 import type { ASTNode, SelectionNode } from './ast'; 3 3 4 4 export function isSelectionNode(node: ASTNode): node is SelectionNode { 5 5 return node.kind === 'Field' || node.kind === 'FragmentSpread' || node.kind === 'InlineFragment'; 6 6 } 7 7 8 - export function Source(body: string, name?: string, locationOffset?: Location) { 8 + export function Source(body: string, name?: string, locationOffset?: Location): _Source { 9 9 return { 10 10 body, 11 11 name,