summaryrefslogtreecommitdiff
path: root/school/node_modules/graphql/utilities/assertValidName.d.ts
blob: 5a1011e7068eb4009cd81d716ed5c9ac53c1cd81 (plain)
1
2
3
4
5
6
7
8
9
10
11
import { GraphQLError } from '../error/GraphQLError';

/**
 * Upholds the spec rules about naming.
 */
export function assertValidName(name: string): string;

/**
 * Returns an Error if a name is invalid.
 */
export function isValidNameError(name: string): GraphQLError | undefined;