Files
Job_App/node_modules/graphql/utilities/assertValidName.d.ts
2025-03-28 12:30:19 +11:00

16 lines
361 B
TypeScript

import { GraphQLError } from '../error/GraphQLError';
import { ASTNode } from '../language/ast';
/**
* 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,
node?: ASTNode | undefined,
): GraphQLError | undefined;