Sha256: 42d907ac511459d7c4828ee4f3f81cc331a08dc98d7b3cb98e3ff5797c095d2e

Contents?: true

Size: 1.12 KB

Versions: 26

Compression:

Stored size: 1.12 KB

Contents

import type {
  ListTypeNode,
  NamedTypeNode,
  NonNullTypeNode,
  TypeNode,
} from '../language/ast';
import type { GraphQLNamedType, GraphQLType } from '../type/definition';
import { GraphQLList, GraphQLNonNull } from '../type/definition';
import type { GraphQLSchema } from '../type/schema';
/**
 * Given a Schema and an AST node describing a type, return a GraphQLType
 * definition which applies to that type. For example, if provided the parsed
 * AST node for `[User]`, a GraphQLList instance will be returned, containing
 * the type called "User" found in the schema. If a type called "User" is not
 * found in the schema, then undefined will be returned.
 */
export declare function typeFromAST(
  schema: GraphQLSchema,
  typeNode: NamedTypeNode,
): GraphQLNamedType | undefined;
export declare function typeFromAST(
  schema: GraphQLSchema,
  typeNode: ListTypeNode,
): GraphQLList<any> | undefined;
export declare function typeFromAST(
  schema: GraphQLSchema,
  typeNode: NonNullTypeNode,
): GraphQLNonNull<any> | undefined;
export declare function typeFromAST(
  schema: GraphQLSchema,
  typeNode: TypeNode,
): GraphQLType | undefined;

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
clapton-0.0.26 lib/clapton/javascripts/node_modules/graphql/utilities/typeFromAST.d.ts
clapton-0.0.25 lib/clapton/javascripts/node_modules/graphql/utilities/typeFromAST.d.ts
clapton-0.0.24 lib/clapton/javascripts/node_modules/graphql/utilities/typeFromAST.d.ts
clapton-0.0.23 lib/clapton/javascripts/node_modules/graphql/utilities/typeFromAST.d.ts
clapton-0.0.22 lib/clapton/javascripts/node_modules/graphql/utilities/typeFromAST.d.ts
clapton-0.0.21 lib/clapton/javascripts/node_modules/graphql/utilities/typeFromAST.d.ts
clapton-0.0.20 lib/clapton/javascripts/node_modules/graphql/utilities/typeFromAST.d.ts
clapton-0.0.19 lib/clapton/javascripts/node_modules/graphql/utilities/typeFromAST.d.ts
clapton-0.0.18 lib/clapton/javascripts/node_modules/graphql/utilities/typeFromAST.d.ts
clapton-0.0.17 lib/clapton/javascripts/node_modules/graphql/utilities/typeFromAST.d.ts
clapton-0.0.16 lib/clapton/javascripts/node_modules/graphql/utilities/typeFromAST.d.ts
clapton-0.0.15 lib/clapton/javascripts/node_modules/graphql/utilities/typeFromAST.d.ts
clapton-0.0.14 lib/clapton/javascripts/node_modules/graphql/utilities/typeFromAST.d.ts
clapton-0.0.13 lib/clapton/javascripts/node_modules/graphql/utilities/typeFromAST.d.ts
clapton-0.0.12 lib/clapton/javascripts/node_modules/graphql/utilities/typeFromAST.d.ts
clapton-0.0.11 lib/clapton/javascripts/node_modules/graphql/utilities/typeFromAST.d.ts
clapton-0.0.10 lib/clapton/javascripts/node_modules/graphql/utilities/typeFromAST.d.ts
clapton-0.0.9 lib/clapton/javascripts/node_modules/graphql/utilities/typeFromAST.d.ts
clapton-0.0.8 lib/clapton/javascripts/node_modules/graphql/utilities/typeFromAST.d.ts
clapton-0.0.7 lib/clapton/javascripts/node_modules/graphql/utilities/typeFromAST.d.ts