assertValidName.d.ts 283 B

1234567891011
  1. import { GraphQLError } from '../error/GraphQLError';
  2. /**
  3. * Upholds the spec rules about naming.
  4. */
  5. export function assertValidName(name: string): string;
  6. /**
  7. * Returns an Error if a name is invalid.
  8. */
  9. export function isValidNameError(name: string): GraphQLError | undefined;