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.11.8 to 0.12.0

3

graphql/index.d.ts

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

// Type definitions for graphql 0.11
// Type definitions for graphql 0.12
// Project: https://www.npmjs.com/package/graphql

@@ -13,2 +13,3 @@ // Definitions by: TonyYang <https://github.com/TonyPythoneer>

// Tim Griesser <https://github.com/tgriesser>
// Dylan Stewart <https://github.com/dyst5422>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

@@ -15,0 +16,0 @@ // TypeScript Version: 2.3

@@ -35,2 +35,30 @@ import { Source } from './source';

/**
* Represents the different kinds of tokens in a GraphQL document.
* This type is not inlined in `Token` to fix syntax highlighting on GitHub
* *only*.
*/
type TokenKind =
| '<SOF>'
| '<EOF>'
| '!'
| '$'
| '('
| ')'
| '...'
| ':'
| '='
| '@'
| '['
| ']'
| '{'
| '|'
| '}'
| 'Name'
| 'Int'
| 'Float'
| 'String'
| 'BlockString'
| 'Comment';
/**
* Represents a range of characters represented by a lexical token

@@ -43,23 +71,3 @@ * within a Source.

*/
kind:
| '<SOF>'
| '<EOF>'
| '!'
| '$'
| '('
| ')'
| '...'
| ':'
| '='
| '@'
| '['
| ']'
| '{'
| '|'
| '}'
| 'Name'
| 'Int'
| 'Float'
| 'String'
| 'Comment';
kind: TokenKind;

@@ -139,5 +147,58 @@ /**

| InputObjectTypeDefinitionNode
| TypeExtensionDefinitionNode
| ScalarTypeExtensionNode
| ObjectTypeExtensionNode
| InterfaceTypeExtensionNode
| UnionTypeExtensionNode
| EnumTypeExtensionNode
| InputObjectTypeExtensionNode
| DirectiveDefinitionNode;
/**
* Utility type listing all nodes indexed by their kind.
*/
export interface ASTKindToNode {
Name: NameNode;
Document: DocumentNode;
OperationDefinition: OperationDefinitionNode;
VariableDefinition: VariableDefinitionNode;
Variable: VariableNode;
SelectionSet: SelectionSetNode;
Field: FieldNode;
Argument: ArgumentNode;
FragmentSpread: FragmentSpreadNode;
InlineFragment: InlineFragmentNode;
FragmentDefinition: FragmentDefinitionNode;
IntValue: IntValueNode;
FloatValue: FloatValueNode;
StringValue: StringValueNode;
BooleanValue: BooleanValueNode;
NullValue: NullValueNode;
EnumValue: EnumValueNode;
ListValue: ListValueNode;
ObjectValue: ObjectValueNode;
ObjectField: ObjectFieldNode;
Directive: DirectiveNode;
NamedType: NamedTypeNode;
ListType: ListTypeNode;
NonNullType: NonNullTypeNode;
SchemaDefinition: SchemaDefinitionNode;
OperationTypeDefinition: OperationTypeDefinitionNode;
ScalarTypeDefinition: ScalarTypeDefinitionNode;
ObjectTypeDefinition: ObjectTypeDefinitionNode;
FieldDefinition: FieldDefinitionNode;
InputValueDefinition: InputValueDefinitionNode;
InterfaceTypeDefinition: InterfaceTypeDefinitionNode;
UnionTypeDefinition: UnionTypeDefinitionNode;
EnumTypeDefinition: EnumTypeDefinitionNode;
EnumValueDefinition: EnumValueDefinitionNode;
InputObjectTypeDefinition: InputObjectTypeDefinitionNode;
ScalarTypeExtension: ScalarTypeExtensionNode;
ObjectTypeExtension: ObjectTypeExtensionNode;
InterfaceTypeExtension: InterfaceTypeExtensionNode;
UnionTypeExtension: UnionTypeExtensionNode;
EnumTypeExtension: EnumTypeExtensionNode;
InputObjectTypeExtension: InputObjectTypeExtensionNode;
DirectiveDefinition: DirectiveDefinitionNode;
}
// Name

@@ -160,6 +221,9 @@

export type DefinitionNode =
| OperationDefinitionNode
| FragmentDefinitionNode
| TypeSystemDefinitionNode; // experimental non-spec addition.
| ExecutableDefinitionNode
| TypeSystemDefinitionNode; // experimental non-spec addition.
export type ExecutableDefinitionNode =
| OperationDefinitionNode
| FragmentDefinitionNode;
export interface OperationDefinitionNode {

@@ -199,5 +263,5 @@ kind: 'OperationDefinition';

export type SelectionNode =
| FieldNode
| FragmentSpreadNode
| InlineFragmentNode;
| FieldNode
| FragmentSpreadNode
| InlineFragmentNode;

@@ -242,2 +306,5 @@ export interface FieldNode {

name: NameNode;
// Note: fragment variable definitions are experimental and may be changed
// or removed in the future.
variableDefinitions?: VariableDefinitionNode[];
typeCondition: NamedTypeNode;

@@ -327,5 +394,5 @@ directives?: DirectiveNode[];

export type TypeNode =
| NamedTypeNode
| ListTypeNode
| NonNullTypeNode;
| NamedTypeNode
| ListTypeNode
| NonNullTypeNode;

@@ -355,3 +422,3 @@ export interface NamedTypeNode {

| TypeDefinitionNode
| TypeExtensionDefinitionNode
| TypeExtensionNode
| DirectiveDefinitionNode;

@@ -384,2 +451,3 @@

loc?: Location;
description?: StringValueNode;
name: NameNode;

@@ -392,2 +460,3 @@ directives?: DirectiveNode[];

loc?: Location;
description?: StringValueNode;
name: NameNode;

@@ -402,2 +471,3 @@ interfaces?: NamedTypeNode[];

loc?: Location;
description?: StringValueNode;
name: NameNode;

@@ -412,2 +482,3 @@ arguments: InputValueDefinitionNode[];

loc?: Location;
description?: StringValueNode;
name: NameNode;

@@ -422,2 +493,3 @@ type: TypeNode;

loc?: Location;
description?: StringValueNode;
name: NameNode;

@@ -431,2 +503,3 @@ directives?: DirectiveNode[];

loc?: Location;
description?: StringValueNode;
name: NameNode;

@@ -440,2 +513,3 @@ directives?: DirectiveNode[];

loc?: Location;
description?: StringValueNode;
name: NameNode;

@@ -449,2 +523,3 @@ directives?: DirectiveNode[];

loc?: Location;
description?: StringValueNode;
name: NameNode;

@@ -457,2 +532,3 @@ directives?: DirectiveNode[];

loc?: Location;
description?: StringValueNode;
name: NameNode;

@@ -463,11 +539,64 @@ directives?: DirectiveNode[];

export interface TypeExtensionDefinitionNode {
kind: 'TypeExtensionDefinition';
loc?: Location;
definition: ObjectTypeDefinitionNode;
}
export type TypeExtensionNode =
| ScalarTypeExtensionNode
| ObjectTypeExtensionNode
| InterfaceTypeExtensionNode
| UnionTypeExtensionNode
| EnumTypeExtensionNode
| InputObjectTypeExtensionNode;
export type ScalarTypeExtensionNode = {
kind: 'ScalarTypeExtension',
loc?: Location,
name: NameNode,
directives?: DirectiveNode[],
};
export type ObjectTypeExtensionNode = {
kind: 'ObjectTypeExtension',
loc?: Location,
name: NameNode,
interfaces?: NamedTypeNode[],
directives?: DirectiveNode[],
fields?: FieldDefinitionNode[],
};
export type InterfaceTypeExtensionNode = {
kind: 'InterfaceTypeExtension',
loc?: Location,
name: NameNode,
directives?: DirectiveNode[],
fields?: FieldDefinitionNode[],
};
export type UnionTypeExtensionNode = {
kind: 'UnionTypeExtension',
loc?: Location,
name: NameNode,
directives?: DirectiveNode[],
types?: NamedTypeNode[],
};
export type EnumTypeExtensionNode = {
kind: 'EnumTypeExtension',
loc?: Location,
name: NameNode,
directives?: DirectiveNode[],
values?: EnumValueDefinitionNode[],
};
export type InputObjectTypeExtensionNode = {
kind: 'InputObjectTypeExtension',
loc?: Location,
name: NameNode,
directives?: DirectiveNode[],
fields?: InputValueDefinitionNode[],
};
// Directive Definitions
export interface DirectiveDefinitionNode {
kind: 'DirectiveDefinition';
loc?: Location;
description?: StringValueNode;
name: NameNode;

@@ -474,0 +603,0 @@ arguments?: InputValueDefinitionNode[];

@@ -63,2 +63,8 @@ // Name

export const TYPE_EXTENSION_DEFINITION: 'TypeExtensionDefinition';
export const SCALAR_TYPE_EXTENSION: 'ScalarTypeExtension';
export const OBJECT_TYPE_EXTENSION: 'ObjectTypeExtension';
export const INTERFACE_TYPE_EXTENSION: 'InterfaceTypeExtension';
export const UNION_TYPE_EXTENSION: 'UnionTypeExtension';
export const ENUM_TYPE_EXTENSION: 'EnumTypeExtension';
export const INPUT_OBJECT_TYPE_EXTENSION: 'InputObjectTypeExtension';

@@ -65,0 +71,0 @@ // Directive Definitions

{
"name": "@types/graphql",
"version": "0.11.8",
"version": "0.12.0",
"description": "TypeScript definitions for graphql",

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

"githubUsername": "tgriesser"
},
{
"name": "Dylan Stewart",
"url": "https://github.com/dyst5422",
"githubUsername": "dyst5422"
}

@@ -66,4 +71,4 @@ ],

"dependencies": {},
"typesPublisherContentHash": "fc86baf47c4fbda99115e577b10a0417f438390ad775fe5e47e029e56fff4447",
"typesPublisherContentHash": "217658bbaf6e2adff08cd59d988305fa9767bc05e64485a3d12d51dcea1dc04b",
"typeScriptVersion": "2.3"
}

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

Additional Details
* Last updated: Thu, 11 Jan 2018 21:51:19 GMT
* Last updated: Wed, 17 Jan 2018 22:17:28 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>.
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>.
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