UNPKG

912 BTypeScriptView Raw
1import { ListTypeNode, NamedTypeNode, NonNullTypeNode, Source, TypeNode } from 'graphql';
2export declare function isStringTypes(types: any): types is string;
3export declare function isSourceTypes(types: any): types is Source;
4export declare function extractType(type: TypeNode): NamedTypeNode;
5export declare function isWrappingTypeNode(type: TypeNode): type is ListTypeNode | NonNullTypeNode;
6export declare function isListTypeNode(type: TypeNode): type is ListTypeNode;
7export declare function isNonNullTypeNode(type: TypeNode): type is NonNullTypeNode;
8export declare function printTypeNode(type: TypeNode): string;
9export declare enum CompareVal {
10 A_SMALLER_THAN_B = -1,
11 A_EQUALS_B = 0,
12 A_GREATER_THAN_B = 1
13}
14export type CompareFn<T> = (a: T | undefined, b: T | undefined) => -1 | 0 | 1;
15export declare function defaultStringComparator(a: string | undefined, b: string | undefined): CompareVal;