Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@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.8.6 to 0.9.0

graphql/utilities/findDeprecatedUsages.d.ts

10

graphql/error/GraphQLError.d.ts

@@ -30,3 +30,3 @@ import { getLocation } from '../language';

*/
locations?: Array<{ line: number, column: number }> | void;
locations?: Array<{ line: number, column: number }> | undefined;

@@ -39,3 +39,3 @@ /**

*/
path?: Array<string | number> | void;
path?: Array<string | number> | undefined;

@@ -45,3 +45,3 @@ /**

*/
nodes?: Array<ASTNode> | void;
nodes?: Array<ASTNode> | undefined;

@@ -51,3 +51,3 @@ /**

*/
source?: Source | void;
source?: Source | undefined;

@@ -58,3 +58,3 @@ /**

*/
positions?: Array<number> | void;
positions?: Array<number> | undefined;

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

@@ -1,4 +0,4 @@

// Type definitions for graphql v0.8.2
// Type definitions for graphql 0.9
// Project: https://www.npmjs.com/package/graphql
// Definitions by: TonyYang <https://github.com/TonyPythoneer>, Caleb Meredith <https://github.com/calebmer>, Dominic Watson <https://github.com/intellix>
// Definitions by: TonyYang <https://github.com/TonyPythoneer>, Caleb Meredith <https://github.com/calebmer>, Dominic Watson <https://github.com/intellix>, Firede <https://github.com/firede>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

@@ -108,2 +108,8 @@

// Compares two GraphQLSchemas and detects breaking changes.
findBreakingChanges,
// Report all deprecated usage within a GraphQL document.
findDeprecatedUsages,
BreakingChange,

@@ -110,0 +116,0 @@

@@ -88,3 +88,3 @@ import { Source } from './source';

*/
value: string | void;
value: string | undefined;

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

@@ -45,3 +45,3 @@ export const QueryDocumentKeys: {

export function visit(root: any, visitor: any, keyMap: any): any;
export function visit(root: any, visitor: any, keyMap?: any): any;

@@ -48,0 +48,0 @@ export function visitInParallel(visitors: any): any;

{
"name": "@types/graphql",
"version": "0.8.6",
"version": "0.9.0",
"description": "TypeScript definitions for graphql",
"license": "MIT",
"author": "TonyYang <https://github.com/TonyPythoneer>, Caleb Meredith <https://github.com/calebmer>, Dominic Watson <https://github.com/intellix>",
"contributors": [
{
"name": "TonyYang",
"url": "https://github.com/TonyPythoneer"
},
{
"name": "Caleb Meredith",
"url": "https://github.com/calebmer"
},
{
"name": "Dominic Watson",
"url": "https://github.com/intellix"
},
{
"name": "Firede",
"url": "https://github.com/firede"
}
],
"main": "",

@@ -15,4 +32,4 @@ "repository": {

"peerDependencies": {},
"typesPublisherContentHash": "3c2c61605e4e5a263faa848746f579edaad858d22109411c780fe4950416837e",
"typesPublisherContentHash": "879be58c407c0dfe41111df0777560ff5f6fafe431012c329a6c4b1faec5fccb",
"typeScriptVersion": "2.0"
}

@@ -11,3 +11,3 @@ # Installation

Additional Details
* Last updated: Wed, 11 Jan 2017 17:17:27 GMT
* Last updated: Mon, 27 Mar 2017 17:41:51 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>.
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>.

@@ -129,2 +129,6 @@ import {

export function isNamedType(type: GraphQLType): boolean;
export function assertNamedType(type: GraphQLType): GraphQLNamedType;
export function getNamedType(type: GraphQLType): GraphQLNamedType;

@@ -241,3 +245,3 @@

info: GraphQLResolveInfo
) => GraphQLObjectType;
) => GraphQLObjectType | string | Promise<GraphQLObjectType | string>;

@@ -248,3 +252,3 @@ export type GraphQLIsTypeOfFn<TSource, TContext> = (

info: GraphQLResolveInfo
) => boolean;
) => boolean | Promise<boolean>;

@@ -271,3 +275,3 @@ export type GraphQLFieldResolver<TSource, TContext> = (

export type ResponsePath = { prev: ResponsePath, key: string | number } | void;
export type ResponsePath = { prev: ResponsePath, key: string | number } | undefined;

@@ -433,2 +437,3 @@ export interface GraphQLFieldConfig<TSource, TContext> {

getValues(): Array<GraphQLEnumValue>;
getValue(name: string): GraphQLEnumValue;
serialize(value: any): string;

@@ -435,0 +440,0 @@ parseValue(value: any): any;

@@ -29,13 +29,1 @@ import { DocumentNode, Location } from '../language/ast';

export function buildSchema(source: string | Source): GraphQLSchema;
/**
* Given an ast node, returns its string description based on a contiguous
* block full-line of comments preceding it.
*/
export function getDescription(node: { loc?: Location }): string;
/**
* A helper function to build a GraphQLSchema directly from a source
* document.
*/
export function buildSchema(source: string | Source): GraphQLSchema;

@@ -10,3 +10,3 @@ import { DocumentNode, OperationDefinitionNode } from '../language/ast';

documentAST: DocumentNode,
operationName: string
operationName?: string
): OperationDefinitionNode;

@@ -76,1 +76,4 @@ // The GraphQL query recommended for a full schema introspection.

export { BreakingChange } from './findBreakingChanges';
// Report all deprecated usage within a GraphQL document.
export { findDeprecatedUsages } from './findDeprecatedUsages';

@@ -8,2 +8,3 @@ import { GraphQLSchema } from '../type/schema';

GraphQLArgument,
GraphQLEnumValue,
GraphQLType,

@@ -34,2 +35,3 @@ } from '../type/definition';

getArgument(): GraphQLArgument;
getEnumValue(): GraphQLEnumValue;
enter(node: ASTNode): any;

@@ -45,2 +47,2 @@ leave(node: ASTNode): any;

): GraphQLField<any, any>
}
}
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