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

Fix slow type

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