Socket
Socket
Sign inDemoInstall

@types/graphql

Package Overview
Dependencies
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/graphql - npm Package Compare versions

Comparing version 0.13.0 to 0.13.1

graphql/tsutils/Maybe.d.ts

0

graphql/error/formatError.d.ts

@@ -0,0 +0,0 @@ import { GraphQLError } from "./GraphQLError";

13

graphql/error/GraphQLError.d.ts

@@ -0,1 +1,2 @@

import Maybe from "../tsutils/Maybe";
import { getLocation } from "../language";

@@ -61,3 +62,3 @@ import { ASTNode } from "../language/ast";

*/
readonly originalError: Error | void;
readonly originalError: Maybe<Error>;

@@ -72,8 +73,8 @@ /**

nodes?: ReadonlyArray<ASTNode> | ASTNode | undefined,
source?: Source | void,
positions?: ReadonlyArray<number> | void,
path?: ReadonlyArray<string | number> | void,
originalError?: Error | void,
extensions?: { [key: string]: any } | void
source?: Maybe<Source>,
positions?: Maybe<ReadonlyArray<number>>,
path?: Maybe<ReadonlyArray<string | number>>,
originalError?: Maybe<Error>,
extensions?: Maybe<{ [key: string]: any }>
);
}

@@ -0,0 +0,0 @@ export { GraphQLError } from "./GraphQLError";

@@ -0,0 +0,0 @@ import { GraphQLError } from "./GraphQLError";

@@ -0,0 +0,0 @@ import { GraphQLError } from "./GraphQLError";

@@ -0,0 +0,0 @@ import { Source } from "../language/source";

@@ -0,1 +1,2 @@

import Maybe from "../tsutils/Maybe";
import { GraphQLError, locatedError } from "../error";

@@ -54,5 +55,5 @@ import { GraphQLSchema } from "../type/schema";

contextValue?: any;
variableValues?: { [key: string]: any } | void;
operationName?: string | void;
fieldResolver?: GraphQLFieldResolver<any, any> | void;
variableValues?: Maybe<{ [key: string]: any }>;
operationName?: Maybe<string>;
fieldResolver?: Maybe<GraphQLFieldResolver<any, any>>;
};

@@ -78,5 +79,5 @@

contextValue?: any,
variableValues?: { [key: string]: any } | void,
operationName?: string | void,
fieldResolver?: GraphQLFieldResolver<any, any> | void
variableValues?: Maybe<{ [key: string]: any }>,
operationName?: Maybe<string>,
fieldResolver?: Maybe<GraphQLFieldResolver<any, any>>
): MaybePromise<ExecutionResult>;

@@ -106,3 +107,3 @@

document: DocumentNode,
rawVariableValues: { [key: string]: any } | void
rawVariableValues: Maybe<{ [key: string]: any }>
): void;

@@ -121,5 +122,5 @@

contextValue: any,
rawVariableValues: { [key: string]: any } | void,
operationName: string | void,
fieldResolver: GraphQLFieldResolver<any, any> | void
rawVariableValues: Maybe<{ [key: string]: any }>,
operationName: Maybe<string>,
fieldResolver: Maybe<GraphQLFieldResolver<any, any>>
): ReadonlyArray<GraphQLError> | ExecutionContext;

@@ -188,2 +189,2 @@

fieldName: string
): GraphQLField<any, any> | void;
): Maybe<GraphQLField<any, any>>;
export { execute, defaultFieldResolver, responsePathAsArray, ExecutionArgs, ExecutionResult } from "./execute";
export { getDirectiveValues } from "./values";

@@ -0,1 +1,2 @@

import Maybe from "../tsutils/Maybe";
import { GraphQLError } from "../error";

@@ -38,3 +39,3 @@ import { GraphQLInputType, GraphQLField, GraphQLArgument } from "../type/definition";

node: FieldNode | DirectiveNode,
variableValues?: { [key: string]: any } | void
variableValues?: Maybe<{ [key: string]: any }>
): { [key: string]: any };

@@ -58,3 +59,3 @@

},
variableValues?: { [key: string]: any } | void
variableValues?: Maybe<{ [key: string]: any }>
): undefined | { [key: string]: any };

@@ -0,1 +1,2 @@

import Maybe from "./tsutils/Maybe";
import { Source } from "./language/source";

@@ -41,5 +42,5 @@ import { GraphQLFieldResolver } from "./type/definition";

contextValue?: any;
variableValues?: { [key: string]: any } | void;
operationName?: string | void;
fieldResolver?: GraphQLFieldResolver<any, any> | void;
variableValues?: Maybe<{ [key: string]: any }>;
operationName?: Maybe<string>;
fieldResolver?: Maybe<GraphQLFieldResolver<any, any>>;
}

@@ -53,5 +54,5 @@

contextValue?: any,
variableValues?: { [key: string]: any } | void,
operationName?: string | void,
fieldResolver?: GraphQLFieldResolver<any, any> | void
variableValues?: Maybe<{ [key: string]: any }>,
operationName?: Maybe<string>,
fieldResolver?: Maybe<GraphQLFieldResolver<any, any>>
): Promise<ExecutionResult>;

@@ -71,5 +72,5 @@

contextValue?: any,
variableValues?: { [key: string]: any } | void,
operationName?: string | void,
fieldResolver?: GraphQLFieldResolver<any, any> | void
variableValues?: Maybe<{ [key: string]: any }>,
operationName?: Maybe<string>,
fieldResolver?: Maybe<GraphQLFieldResolver<any, any>>
): ExecutionResult;

@@ -16,2 +16,3 @@ // Type definitions for graphql 0.13

// Divyendu Singh <https://github.com/divyenduz>
// Brad Zacher <https://github.com/bradzacher>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

@@ -18,0 +19,0 @@ // TypeScript Version: 2.3

export type MaybePromise<T> = Promise<T> | T;

@@ -0,0 +0,0 @@ import { Source } from "./source";

@@ -0,0 +0,0 @@ export { getLocation, SourceLocation } from "./location";

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ import { Token } from "./ast";

@@ -0,0 +0,0 @@ import { Source } from "./source";

@@ -0,0 +0,0 @@ import { NamedTypeNode, TypeNode, ValueNode, DocumentNode } from "./ast";

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ interface Location {

@@ -0,1 +1,2 @@

import Maybe from "../tsutils/Maybe";
import { ASTNode, ASTKindToNode } from "./ast";

@@ -160,2 +161,2 @@ import { TypeInfo } from "../utilities/TypeInfo";

*/
export function getVisitFn(visitor: Visitor<any>, kind: string, isLeaving: boolean): VisitFn<any> | void;
export function getVisitFn(visitor: Visitor<any>, kind: string, isLeaving: boolean): Maybe<VisitFn<any>>;
{
"name": "@types/graphql",
"version": "0.13.0",
"version": "0.13.1",
"description": "TypeScript definitions for graphql",

@@ -71,2 +71,7 @@ "license": "MIT",

"githubUsername": "divyenduz"
},
{
"name": "Brad Zacher",
"url": "https://github.com/bradzacher",
"githubUsername": "bradzacher"
}

@@ -77,8 +82,8 @@ ],

"type": "git",
"url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git.git"
},
"scripts": {},
"dependencies": {},
"typesPublisherContentHash": "4f38d4340315c285dc6b379c954a63e0cf803109a23b17c0496b148aec17ef1d",
"typesPublisherContentHash": "49d4aac615da6050ac2c9c92ab7fd6d4c482799fc9635f003c70d87507268447",
"typeScriptVersion": "2.3"
}

@@ -8,6 +8,6 @@ # Installation

# Details
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/graphql
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped.git/tree/master/types/graphql
Additional Details
* Last updated: Tue, 03 Apr 2018 17:35:01 GMT
* Last updated: Thu, 10 May 2018 20:18:20 GMT
* Dependencies: none

@@ -17,2 +17,2 @@ * Global values: none

# Credits
These definitions were written by TonyYang <https://github.com/TonyPythoneer>, Caleb Meredith <https://github.com/calebmer>, Dominic Watson <https://github.com/intellix>, Firede <https://github.com/firede>, Kepennar <https://github.com/kepennar>, Mikhail Novikov <https://github.com/freiksenet>, Ivan Goncharov <https://github.com/IvanGoncharov>, Hagai Cohen <https://github.com/DxCx>, Ricardo Portugal <https://github.com/rportugal>, Tim Griesser <https://github.com/tgriesser>, Dylan Stewart <https://github.com/dyst5422>, Alessio Dionisi <https://github.com/adnsio>, Divyendu Singh <https://github.com/divyenduz>.
These definitions were written by TonyYang <https://github.com/TonyPythoneer>, Caleb Meredith <https://github.com/calebmer>, Dominic Watson <https://github.com/intellix>, Firede <https://github.com/firede>, Kepennar <https://github.com/kepennar>, Mikhail Novikov <https://github.com/freiksenet>, Ivan Goncharov <https://github.com/IvanGoncharov>, Hagai Cohen <https://github.com/DxCx>, Ricardo Portugal <https://github.com/rportugal>, Tim Griesser <https://github.com/tgriesser>, Dylan Stewart <https://github.com/dyst5422>, Alessio Dionisi <https://github.com/adnsio>, Divyendu Singh <https://github.com/divyenduz>, Brad Zacher <https://github.com/bradzacher>.
export { subscribe, createSourceEventStream } from "./subscribe";

@@ -0,1 +1,2 @@

import Maybe from "../tsutils/Maybe";
import { GraphQLSchema } from "../type/schema";

@@ -31,6 +32,6 @@ import { DocumentNode } from "../language/ast";

contextValue?: any;
variableValues?: { [key: string]: any } | void;
operationName?: string | void;
fieldResolver?: GraphQLFieldResolver<any, any> | void;
subscribeFieldResolver?: GraphQLFieldResolver<any, any> | void;
variableValues?: Maybe<{ [key: string]: any }>;
operationName?: Maybe<string>;
fieldResolver?: Maybe<GraphQLFieldResolver<any, any>>;
subscribeFieldResolver?: Maybe<GraphQLFieldResolver<any, any>>;
}): Promise<AsyncIterator<ExecutionResult> | ExecutionResult>;

@@ -43,6 +44,6 @@

contextValue?: any,
variableValues?: { [key: string]: any } | void,
operationName?: string | void,
fieldResolver?: GraphQLFieldResolver<any, any> | void,
subscribeFieldResolver?: GraphQLFieldResolver<any, any> | void
variableValues?: Maybe<{ [key: string]: any }>,
operationName?: Maybe<string>,
fieldResolver?: Maybe<GraphQLFieldResolver<any, any>>,
subscribeFieldResolver?: Maybe<GraphQLFieldResolver<any, any>>
): Promise<AsyncIterator<ExecutionResult> | ExecutionResult>;

@@ -74,4 +75,4 @@

variableValues?: { [key: string]: any },
operationName?: string | void,
fieldResolver?: GraphQLFieldResolver<any, any> | void
operationName?: Maybe<string>,
fieldResolver?: Maybe<GraphQLFieldResolver<any, any>>
): Promise<AsyncIterable<any> | ExecutionResult>;

@@ -0,1 +1,2 @@

import Maybe from "../tsutils/Maybe";
import { MaybePromise } from "../jsutils/MaybePromise";

@@ -257,4 +258,4 @@ import {

name: string;
description: string | void;
astNode?: ScalarTypeDefinitionNode | void;
description: Maybe<string>;
astNode?: Maybe<ScalarTypeDefinitionNode>;
constructor(config: GraphQLScalarTypeConfig<any, any>);

@@ -269,3 +270,3 @@

// Parses an externally provided literal value to use as an input.
parseLiteral(valueNode: ValueNode, variables?: { [key: string]: any } | void): any;
parseLiteral(valueNode: ValueNode, variables?: Maybe<{ [key: string]: any }>): any;

@@ -279,7 +280,7 @@ toString(): string;

name: string;
description?: string | void;
astNode?: ScalarTypeDefinitionNode | void;
serialize(value: any): TExternal | void;
parseValue?(value: any): TInternal | void;
parseLiteral?(valueNode: ValueNode, variables: { [key: string]: any } | void): TInternal | void;
description?: Maybe<string>;
astNode?: Maybe<ScalarTypeDefinitionNode>;
serialize(value: any): Maybe<TExternal>;
parseValue?(value: any): Maybe<TInternal>;
parseLiteral?(valueNode: ValueNode, variables: Maybe<{ [key: string]: any }>): Maybe<TInternal>;
}

@@ -326,6 +327,6 @@

name: string;
description: string | void;
astNode: ObjectTypeDefinitionNode | void;
extensionASTNodes: ReadonlyArray<ObjectTypeExtensionNode> | void;
isTypeOf: GraphQLIsTypeOfFn<any, any> | void;
description: Maybe<string>;
astNode: Maybe<ObjectTypeDefinitionNode>;
extensionASTNodes: Maybe<ReadonlyArray<ObjectTypeExtensionNode>>;
isTypeOf: Maybe<GraphQLIsTypeOfFn<any, any>>;

@@ -342,8 +343,8 @@ constructor(config: GraphQLObjectTypeConfig<any, any>);

name: string;
interfaces?: Thunk<GraphQLInterfaceType[] | void>;
interfaces?: Thunk<Maybe<GraphQLInterfaceType[]>>;
fields: Thunk<GraphQLFieldConfigMap<TSource, TContext>>;
isTypeOf?: GraphQLIsTypeOfFn<TSource, TContext> | void;
description?: string | void;
astNode?: ObjectTypeDefinitionNode | void;
extensionASTNodes?: ReadonlyArray<ObjectTypeExtensionNode> | void;
isTypeOf?: Maybe<GraphQLIsTypeOfFn<TSource, TContext>>;
description?: Maybe<string>;
astNode?: Maybe<ObjectTypeDefinitionNode>;
extensionASTNodes?: Maybe<ReadonlyArray<ObjectTypeExtensionNode>>;
}

@@ -355,3 +356,3 @@

info: GraphQLResolveInfo
) => MaybePromise<GraphQLObjectType | string | void>;
) => MaybePromise<Maybe<GraphQLObjectType | string>>;

@@ -394,5 +395,5 @@ export type GraphQLIsTypeOfFn<TSource, TContext> = (

subscribe?: GraphQLFieldResolver<TSource, TContext, TArgs>;
deprecationReason?: string | void;
description?: string | void;
astNode?: FieldDefinitionNode | void;
deprecationReason?: Maybe<string>;
description?: Maybe<string>;
astNode?: Maybe<FieldDefinitionNode>;
}

@@ -405,4 +406,4 @@

defaultValue?: any;
description?: string | void;
astNode?: InputValueDefinitionNode | void;
description?: Maybe<string>;
astNode?: Maybe<InputValueDefinitionNode>;
}

@@ -416,3 +417,3 @@

name: string;
description: string | void;
description: Maybe<string>;
type: GraphQLOutputType;

@@ -423,4 +424,4 @@ args: GraphQLArgument[];

isDeprecated?: boolean;
deprecationReason?: string | void;
astNode?: FieldDefinitionNode | void;
deprecationReason?: Maybe<string>;
astNode?: Maybe<FieldDefinitionNode>;
}

@@ -432,4 +433,4 @@

defaultValue?: any;
description?: string | void;
astNode?: InputValueDefinitionNode | void;
description?: Maybe<string>;
astNode?: Maybe<InputValueDefinitionNode>;
}

@@ -461,6 +462,6 @@

name: string;
description: string | void;
astNode?: InterfaceTypeDefinitionNode | void;
extensionASTNodes: ReadonlyArray<InterfaceTypeExtensionNode> | void;
resolveType: GraphQLTypeResolver<any, any> | void;
description: Maybe<string>;
astNode?: Maybe<InterfaceTypeDefinitionNode>;
extensionASTNodes: Maybe<ReadonlyArray<InterfaceTypeExtensionNode>>;
resolveType: Maybe<GraphQLTypeResolver<any, any>>;

@@ -484,6 +485,6 @@ constructor(config: GraphQLInterfaceTypeConfig<any, any>);

*/
resolveType?: GraphQLTypeResolver<TSource, TContext> | void;
description?: string | void;
astNode?: InterfaceTypeDefinitionNode | void;
extensionASTNodes?: ReadonlyArray<InterfaceTypeExtensionNode> | void;
resolveType?: Maybe<GraphQLTypeResolver<TSource, TContext>>;
description?: Maybe<string>;
astNode?: Maybe<InterfaceTypeDefinitionNode>;
extensionASTNodes?: Maybe<ReadonlyArray<InterfaceTypeExtensionNode>>;
}

@@ -516,5 +517,5 @@

name: string;
description: string | void;
astNode?: UnionTypeDefinitionNode | void;
resolveType: GraphQLTypeResolver<any, any> | void;
description: Maybe<string>;
astNode?: Maybe<UnionTypeDefinitionNode>;
resolveType: Maybe<GraphQLTypeResolver<any, any>>;

@@ -538,5 +539,5 @@ constructor(config: GraphQLUnionTypeConfig<any, any>);

*/
resolveType?: GraphQLTypeResolver<TSource, TContext> | void;
description?: string | void;
astNode?: UnionTypeDefinitionNode | void;
resolveType?: Maybe<GraphQLTypeResolver<TSource, TContext>>;
description?: Maybe<string>;
astNode?: Maybe<UnionTypeDefinitionNode>;
}

@@ -567,11 +568,11 @@

name: string;
description: string | void;
astNode: EnumTypeDefinitionNode | void;
description: Maybe<string>;
astNode: Maybe<EnumTypeDefinitionNode>;
constructor(config: GraphQLEnumTypeConfig);
getValues(): GraphQLEnumValue[];
getValue(name: string): GraphQLEnumValue | void;
serialize(value: any): string | void;
parseValue(value: any): any;
parseLiteral(valueNode: ValueNode, _variables: { [key: string]: any } | void): any;
getValue(name: string): Maybe<GraphQLEnumValue>;
serialize(value: any): Maybe<string>;
parseValue(value: any): Maybe<any>;
parseLiteral(valueNode: ValueNode, _variables: Maybe<{ [key: string]: any }>): Maybe<any>;
toString(): string;

@@ -585,4 +586,4 @@ toJSON(): string;

values: GraphQLEnumValueConfigMap;
description?: string | void;
astNode?: EnumTypeDefinitionNode | void;
description?: Maybe<string>;
astNode?: Maybe<EnumTypeDefinitionNode>;
}

@@ -594,5 +595,5 @@

value?: any;
deprecationReason?: string | void;
description?: string | void;
astNode?: EnumValueDefinitionNode | void;
deprecationReason?: Maybe<string>;
description?: Maybe<string>;
astNode?: Maybe<EnumValueDefinitionNode>;
}

@@ -602,6 +603,6 @@

name: string;
description: string | void;
description: Maybe<string>;
isDeprecated?: boolean;
deprecationReason: string | void;
astNode?: EnumValueDefinitionNode | void;
deprecationReason: Maybe<string>;
astNode?: Maybe<EnumValueDefinitionNode>;
value: any;

@@ -632,4 +633,4 @@ }

name: string;
description: string | void;
astNode: InputObjectTypeDefinitionNode | void;
description: Maybe<string>;
astNode: Maybe<InputObjectTypeDefinitionNode>;
constructor(config: GraphQLInputObjectTypeConfig);

@@ -645,4 +646,4 @@ getFields(): GraphQLInputFieldMap;

fields: Thunk<GraphQLInputFieldConfigMap>;
description?: string | void;
astNode?: InputObjectTypeDefinitionNode | void;
description?: Maybe<string>;
astNode?: Maybe<InputObjectTypeDefinitionNode>;
}

@@ -653,4 +654,4 @@

defaultValue?: any;
description?: string | void;
astNode?: InputValueDefinitionNode | void;
description?: Maybe<string>;
astNode?: Maybe<InputValueDefinitionNode>;
}

@@ -666,6 +667,6 @@

defaultValue?: any;
description?: string | void;
astNode?: InputValueDefinitionNode | void;
description?: Maybe<string>;
astNode?: Maybe<InputValueDefinitionNode>;
}
export type GraphQLInputFieldMap = { [key: string]: GraphQLInputField };

@@ -0,1 +1,2 @@

import Maybe from "../tsutils/Maybe";
import { GraphQLFieldConfigArgumentMap, GraphQLArgument } from "./definition";

@@ -16,6 +17,6 @@ import { DirectiveDefinitionNode } from "../language/ast";

name: string;
description: string | void;
description: Maybe<string>;
locations: DirectiveLocationEnum[];
args: GraphQLArgument[];
astNode: DirectiveDefinitionNode | void;
astNode: Maybe<DirectiveDefinitionNode>;

@@ -27,6 +28,6 @@ constructor(config: GraphQLDirectiveConfig);

name: string;
description?: string | void;
description?: Maybe<string>;
locations: DirectiveLocationEnum[];
args?: GraphQLFieldConfigArgumentMap | void;
astNode?: DirectiveDefinitionNode | void;
args?: Maybe<GraphQLFieldConfigArgumentMap>;
astNode?: Maybe<DirectiveDefinitionNode>;
}

@@ -33,0 +34,0 @@

@@ -0,0 +0,0 @@ export {

@@ -0,0 +0,0 @@ import {

@@ -0,0 +0,0 @@ import { GraphQLScalarType } from "./definition";

@@ -0,1 +1,2 @@

import Maybe from "../tsutils/Maybe";
import { GraphQLObjectType } from "./definition";

@@ -38,11 +39,11 @@ import { GraphQLType, GraphQLNamedType, GraphQLAbstractType } from "./definition";

export class GraphQLSchema {
astNode: SchemaDefinitionNode | void;
astNode: Maybe<SchemaDefinitionNode>;
constructor(config: GraphQLSchemaConfig);
getQueryType(): GraphQLObjectType | void;
getMutationType(): GraphQLObjectType | void;
getSubscriptionType(): GraphQLObjectType | void;
getQueryType(): Maybe<GraphQLObjectType>;
getMutationType(): Maybe<GraphQLObjectType>;
getSubscriptionType(): Maybe<GraphQLObjectType>;
getTypeMap(): TypeMap;
getType(name: string): GraphQLNamedType | void;
getType(name: string): Maybe<GraphQLNamedType>;
getPossibleTypes(abstractType: GraphQLAbstractType): ReadonlyArray<GraphQLObjectType>;

@@ -53,3 +54,3 @@

getDirectives(): ReadonlyArray<GraphQLDirective>;
getDirective(name: string): GraphQLDirective | void;
getDirective(name: string): Maybe<GraphQLDirective>;
}

@@ -77,12 +78,12 @@

*/
allowedLegacyNames?: ReadonlyArray<string> | void;
allowedLegacyNames?: Maybe<ReadonlyArray<string>>;
}
export interface GraphQLSchemaConfig extends GraphQLSchemaValidationOptions {
query: GraphQLObjectType | void;
mutation?: GraphQLObjectType | void;
subscription?: GraphQLObjectType | void;
types?: GraphQLNamedType[] | void;
directives?: GraphQLDirective[] | void;
astNode?: SchemaDefinitionNode | void;
query: Maybe<GraphQLObjectType>;
mutation?: Maybe<GraphQLObjectType>;
subscription?: Maybe<GraphQLObjectType>;
types?: Maybe<GraphQLNamedType[]>;
directives?: Maybe<GraphQLDirective[]>;
astNode?: Maybe<SchemaDefinitionNode>;
}

@@ -0,0 +0,0 @@ import { GraphQLSchema } from "./schema";

@@ -0,0 +0,0 @@ import { GraphQLError } from "../error/GraphQLError";

@@ -0,1 +1,2 @@

import Maybe from "../tsutils/Maybe";
import { ValueNode } from "../language/ast";

@@ -21,2 +22,2 @@ import { GraphQLInputType } from "../type/definition";

*/
export function astFromValue(value: any, type: GraphQLInputType): ValueNode | void;
export function astFromValue(value: any, type: GraphQLInputType): Maybe<ValueNode>;

@@ -0,1 +1,2 @@

import Maybe from "../tsutils/Maybe";
import {

@@ -50,3 +51,3 @@ DocumentNode,

export class ASTDefinitionBuilder {
constructor(typeDefinitionsMap: TypeDefinitionsMap, options: BuildSchemaOptions | void, resolveType: TypeResolver);
constructor(typeDefinitionsMap: TypeDefinitionsMap, options: Maybe<BuildSchemaOptions>, resolveType: TypeResolver);

@@ -73,3 +74,3 @@ buildTypes(nodes: ReadonlyArray<NamedTypeNode | TypeDefinitionNode>): Array<GraphQLNamedType>;

node: { readonly description?: StringValueNode; readonly loc?: Location },
options: BuildSchemaOptions | void
options: Maybe<BuildSchemaOptions>
): string | undefined;

@@ -76,0 +77,0 @@

@@ -0,0 +0,0 @@ import { IntrospectionQuery } from "./introspectionQuery";

@@ -0,0 +0,0 @@ import { GraphQLError } from "../error";

@@ -0,0 +0,0 @@ import { DocumentNode } from "../language/ast";

@@ -0,0 +0,0 @@ import { DocumentNode } from "../language/ast";

@@ -0,0 +0,0 @@ import { GraphQLSchema } from "../type/schema";

@@ -0,1 +1,2 @@

import Maybe from "../tsutils/Maybe";
import { DocumentNode, OperationDefinitionNode } from "../language/ast";

@@ -10,3 +11,3 @@

documentAST: DocumentNode,
operationName: string | void
): OperationDefinitionNode | void;
operationName: Maybe<string>
): Maybe<OperationDefinitionNode>;

@@ -0,0 +0,0 @@ // The GraphQL query recommended for a full schema introspection.

@@ -0,0 +0,0 @@ import { GraphQLSchema } from "../type/schema";

@@ -0,1 +1,2 @@

import Maybe from "../tsutils/Maybe";
import { DirectiveLocationEnum } from "../language/directiveLocation";

@@ -19,4 +20,4 @@

readonly queryType: IntrospectionNamedTypeRef<IntrospectionObjectType>;
readonly mutationType: IntrospectionNamedTypeRef<IntrospectionObjectType> | void;
readonly subscriptionType: IntrospectionNamedTypeRef<IntrospectionObjectType> | void;
readonly mutationType: Maybe<IntrospectionNamedTypeRef<IntrospectionObjectType>>;
readonly subscriptionType: Maybe<IntrospectionNamedTypeRef<IntrospectionObjectType>>;
readonly types: ReadonlyArray<IntrospectionType>;

@@ -46,3 +47,3 @@ readonly directives: ReadonlyArray<IntrospectionDirective>;

readonly name: string;
readonly description?: string | void;
readonly description?: Maybe<string>;
}

@@ -53,3 +54,3 @@

readonly name: string;
readonly description?: string | void;
readonly description?: Maybe<string>;
readonly fields: ReadonlyArray<IntrospectionField>;

@@ -62,3 +63,3 @@ readonly interfaces: ReadonlyArray<IntrospectionNamedTypeRef<IntrospectionInterfaceType>>;

readonly name: string;
readonly description?: string | void;
readonly description?: Maybe<string>;
readonly fields: ReadonlyArray<IntrospectionField>;

@@ -71,3 +72,3 @@ readonly possibleTypes: ReadonlyArray<IntrospectionNamedTypeRef<IntrospectionObjectType>>;

readonly name: string;
readonly description?: string | void;
readonly description?: Maybe<string>;
readonly possibleTypes: ReadonlyArray<IntrospectionNamedTypeRef<IntrospectionObjectType>>;

@@ -79,3 +80,3 @@ }

readonly name: string;
readonly description?: string | void;
readonly description?: Maybe<string>;
readonly enumValues: ReadonlyArray<IntrospectionEnumValue>;

@@ -87,3 +88,3 @@ }

readonly name: string;
readonly description?: string | void;
readonly description?: Maybe<string>;
readonly inputFields: ReadonlyArray<IntrospectionInputValue>;

@@ -124,7 +125,7 @@ }

readonly name: string;
readonly description?: string | void;
readonly description?: Maybe<string>;
readonly args: ReadonlyArray<IntrospectionInputValue>;
readonly type: IntrospectionOutputTypeRef;
readonly isDeprecated: boolean;
readonly deprecationReason?: string | void;
readonly deprecationReason?: Maybe<string>;
}

@@ -134,5 +135,5 @@

readonly name: string;
readonly description?: string | void;
readonly description?: Maybe<string>;
readonly type: IntrospectionInputTypeRef;
readonly defaultValue?: string | void;
readonly defaultValue?: Maybe<string>;
}

@@ -142,5 +143,5 @@

readonly name: string;
readonly description?: string | void;
readonly description?: Maybe<string>;
readonly isDeprecated: boolean;
readonly deprecationReason?: string | void;
readonly deprecationReason?: Maybe<string>;
}

@@ -150,5 +151,5 @@

readonly name: string;
readonly description?: string | void;
readonly description?: Maybe<string>;
readonly locations: ReadonlyArray<DirectiveLocationEnum>;
readonly args: ReadonlyArray<IntrospectionInputValue>;
}

@@ -0,0 +0,0 @@ import { GraphQLInputType } from "../type/definition";

@@ -0,0 +0,0 @@ import { GraphQLError } from "../error/GraphQLError";

@@ -0,0 +0,0 @@ import { GraphQLSchema } from "../type/schema";

@@ -0,0 +0,0 @@ import { GraphQLSchema } from "../type/schema";

@@ -0,0 +0,0 @@ import { DocumentNode, OperationDefinitionNode } from "../language/ast";

@@ -0,0 +0,0 @@ import { GraphQLType, GraphQLCompositeType, GraphQLAbstractType } from "../type/definition";

@@ -0,0 +0,0 @@ import { TypeNode, NamedTypeNode, ListTypeNode, NonNullTypeNode } from "../language/ast";

@@ -0,1 +1,2 @@

import Maybe from "../tsutils/Maybe";
import { GraphQLSchema } from "../type/schema";

@@ -31,10 +32,11 @@ import {

getType(): GraphQLOutputType | void;
getParentType(): GraphQLCompositeType | void;
getInputType(): GraphQLInputType | void;
getParentInputType(): GraphQLInputType | void;
getFieldDef(): GraphQLField<any, any> | void;
getDirective(): GraphQLDirective | void;
getArgument(): GraphQLArgument | void;
getEnumValue(): GraphQLEnumValue | void;
getType(): Maybe<GraphQLOutputType>;
getParentType(): Maybe<GraphQLCompositeType>;
getInputType(): Maybe<GraphQLInputType>;
getParentInputType(): Maybe<GraphQLInputType>;
getFieldDef(): GraphQLField<any, Maybe<any>>;
getDefaultValue(): Maybe<any>;
getDirective(): Maybe<GraphQLDirective>;
getArgument(): Maybe<GraphQLArgument>;
getEnumValue(): Maybe<GraphQLEnumValue>;
enter(node: ASTNode): any;

@@ -48,2 +50,2 @@ leave(node: ASTNode): any;

fieldNode: FieldNode
) => GraphQLField<any, any> | void;
) => Maybe<GraphQLField<any, any>>;

@@ -0,1 +1,2 @@

import Maybe from "../tsutils/Maybe";
import { GraphQLInputType } from "../type/definition";

@@ -25,5 +26,5 @@ import { ValueNode, VariableNode, ListValueNode, ObjectValueNode } from "../language/ast";

export function valueFromAST(
valueNode: ValueNode | void,
valueNode: Maybe<ValueNode>,
type: GraphQLInputType,
variables?: { [key: string]: any } | void
variables?: Maybe<{ [key: string]: any }>
): any;

@@ -0,1 +1,2 @@

import Maybe from "../tsutils/Maybe";
import { ValueNode } from "../language/ast";

@@ -19,2 +20,2 @@

*/
export function valueFromASTUntyped(valueNode: ValueNode, variables?: { [key: string]: any } | void): any;
export function valueFromASTUntyped(valueNode: ValueNode, variables?: Maybe<{ [key: string]: any }>): any;

@@ -0,0 +0,0 @@ export { validate } from "./validate";

@@ -0,0 +0,0 @@ import ValidationContext from "../ValidationContext";

@@ -0,0 +0,0 @@ import ValidationContext from "../ValidationContext";

@@ -0,0 +0,0 @@ import ValidationContext from "../ValidationContext";

@@ -0,0 +0,0 @@ import ValidationContext from "../ValidationContext";

@@ -0,0 +0,0 @@ import ValidationContext from "../ValidationContext";

@@ -0,0 +0,0 @@ import ValidationContext from "../ValidationContext";

@@ -0,0 +0,0 @@ import ValidationContext from "../ValidationContext";

@@ -0,0 +0,0 @@ import ValidationContext from "../ValidationContext";

@@ -0,0 +0,0 @@ import ValidationContext from "../ValidationContext";

@@ -0,5 +1,6 @@

import Maybe from "../../tsutils/Maybe";
import ValidationContext from "../ValidationContext";
import { ASTVisitor } from "../../language/visitor";
export function undefinedVarMessage(varName: string, opName: string | void): string;
export function undefinedVarMessage(varName: string, opName: Maybe<string>): string;

@@ -6,0 +7,0 @@ /**

@@ -0,0 +0,0 @@ import ValidationContext from "../ValidationContext";

@@ -0,5 +1,6 @@

import Maybe from "../../tsutils/Maybe";
import ValidationContext from "../ValidationContext";
import { ASTVisitor } from "../../language/visitor";
export function unusedVariableMessage(varName: string, opName: string | void): string;
export function unusedVariableMessage(varName: string, opName: Maybe<string>): string;

@@ -6,0 +7,0 @@ /**

@@ -0,0 +0,0 @@ import ValidationContext from "../ValidationContext";

@@ -0,0 +0,0 @@ import ValidationContext from "../ValidationContext";

@@ -0,0 +0,0 @@ import ValidationContext from "../ValidationContext";

@@ -0,0 +0,0 @@ import ValidationContext from "../ValidationContext";

@@ -0,5 +1,6 @@

import Maybe from "../../tsutils/Maybe";
import ValidationContext from "../ValidationContext";
import { ASTVisitor } from "../../language/visitor";
export function singleFieldOnlyMessage(name: string | void): string;
export function singleFieldOnlyMessage(name: Maybe<string>): string;

@@ -6,0 +7,0 @@ /**

@@ -0,0 +0,0 @@ import ValidationContext from "../ValidationContext";

@@ -0,0 +0,0 @@ import ValidationContext from "../ValidationContext";

@@ -0,0 +0,0 @@ import ValidationContext from "../ValidationContext";

@@ -0,0 +0,0 @@ import ValidationContext from "../ValidationContext";

@@ -0,0 +0,0 @@ import ValidationContext from "../ValidationContext";

@@ -0,0 +0,0 @@ import ValidationContext from "../ValidationContext";

@@ -0,0 +0,0 @@ import ValidationContext from "../ValidationContext";

@@ -0,0 +0,0 @@ import ValidationContext from "../ValidationContext";

@@ -0,0 +0,0 @@ import ValidationContext from "../ValidationContext";

@@ -0,0 +0,0 @@ import ValidationContext from "../ValidationContext";

@@ -0,0 +0,0 @@ // Spec Section: "Executable Definitions"

@@ -0,0 +0,0 @@ import { GraphQLError } from "../error";

@@ -0,1 +1,2 @@

import Maybe from "../tsutils/Maybe";
import { GraphQLError } from "../error";

@@ -22,3 +23,7 @@ import {

type NodeWithSelectionSet = OperationDefinitionNode | FragmentDefinitionNode;
type VariableUsage = { node: VariableNode; type: GraphQLInputType | void };
type VariableUsage = {
readonly node: VariableNode;
readonly type: Maybe<GraphQLInputType>;
readonly defaultValue: Maybe<any>;
};

@@ -41,3 +46,3 @@ /**

getFragment(name: string): FragmentDefinitionNode | void;
getFragment(name: string): Maybe<FragmentDefinitionNode>;

@@ -52,15 +57,15 @@ getFragmentSpreads(node: SelectionSetNode): ReadonlyArray<FragmentSpreadNode>;

getType(): GraphQLOutputType | void;
getType(): Maybe<GraphQLOutputType>;
getParentType(): GraphQLCompositeType | void;
getParentType(): Maybe<GraphQLCompositeType>;
getInputType(): GraphQLInputType | void;
getInputType(): Maybe<GraphQLInputType>;
getParentInputType(): GraphQLInputType | void;
getParentInputType(): Maybe<GraphQLInputType>;
getFieldDef(): GraphQLField<any, any> | void;
getFieldDef(): Maybe<GraphQLField<any, any>>;
getDirective(): GraphQLDirective | void;
getDirective(): Maybe<GraphQLDirective>;
getArgument(): GraphQLArgument | void;
getArgument(): Maybe<GraphQLArgument>;
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc