UNPKG

643 BTypeScriptView Raw
1import { ASTNode } from 'graphql';
2export declare const asArray: <T>(fns: T | T[]) => T[];
3export declare function isDocumentString(str: any): boolean;
4export declare function isValidPath(str: any): boolean;
5export declare function compareStrings<A, B>(a: A, b: B): 1 | -1 | 0;
6export declare function nodeToString(a: ASTNode): string;
7export declare function compareNodes(a: ASTNode, b: ASTNode, customFn?: (a: any, b: any) => number): number;
8export declare function isSome<T>(input: T): input is Exclude<T, null | undefined>;
9export declare function assertSome<T>(input: T, message?: string): asserts input is Exclude<T, null | undefined>;