helpers.d.ts 643 B

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