UNPKG

444 BTypeScriptView Raw
1import { GraphQLError } from '../error/GraphQLError';
2/**
3 * Upholds the spec rules about naming.
4 * @deprecated Please use `assertName` instead. Will be removed in v17
5 */
6export declare function assertValidName(name: string): string;
7/**
8 * Returns an Error if a name is invalid.
9 * @deprecated Please use `assertName` instead. Will be removed in v17
10 */
11export declare function isValidNameError(
12 name: string,
13): GraphQLError | undefined;