graphql
Version:
A Query Language and Runtime which can target any service.
22 lines (18 loc) • 538 B
TypeScript
import { ASTVisitor } from '../../language/visitor';
import { SDLValidationContext } from '../ValidationContext';
export function extendingUnknownTypeMessage(
typeName: string,
suggestedTypes: ReadonlyArray<string>,
): string;
export function extendingDifferentTypeKindMessage(
typeName: string,
kind: string,
): string;
/**
* Possible type extension
*
* A type extension is only valid if the type is defined and has the same kind.
*/
export function PossibleTypeExtensions(
context: SDLValidationContext,
): ASTVisitor;