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.12.3 to 0.12.4

62

graphql/language/parser.d.ts

@@ -9,2 +9,3 @@ import { NamedTypeNode, TypeNode, ValueNode, DocumentNode } from './ast';

export interface ParseOptions {
/**

@@ -15,3 +16,41 @@ * By default, the parser creates AST nodes that know the location

*/
noLocation?: boolean;
noLocation?: boolean,
/**
* If enabled, the parser will parse empty fields sets in the Schema
* Definition Language. Otherwise, the parser will follow the current
* specification.
*
* This option is provided to ease adoption of the final SDL specification
* and will be removed in a future major release.
*/
allowLegacySDLEmptyFields?: boolean,
/**
* If enabled, the parser will parse implemented interfaces with no `&`
* character between each interface. Otherwise, the parser will follow the
* current specification.
*
* This option is provided to ease adoption of the final SDL specification
* and will be removed in a future major release.
*/
allowLegacySDLImplementsInterfaces?: boolean,
/**
* EXPERIMENTAL:
*
* If enabled, the parser will understand and parse variable definitions
* contained in a fragment definition. They'll be represented in the
* `variableDefinitions` field of the FragmentDefinitionNode.
*
* The syntax is identical to normal, query-defined variables. For example:
*
* fragment A($var: Boolean = false) on T {
* ...
* }
*
* Note: this feature is experimental and may change or be removed in the
* future.
*/
experimentalFragmentVariables?: boolean,
}

@@ -40,12 +79,19 @@

export function parseConstValue<TOptions>(lexer: Lexer<TOptions>): ValueNode;
/**
* Type :
* - NamedType
* - ListType
* - NonNullType
* Given a string containing a GraphQL Type (ex. `[Int!]`), parse the AST for
* that type.
* Throws GraphQLError if a syntax error is encountered.
*
* This is useful within tools that operate upon GraphQL Types directly and
* in isolation of complete GraphQL documents.
*
* Consider providing the results to the utility function: typeFromAST().
*/
export function parseType<TOptions>(lexer: Lexer<TOptions>): TypeNode;
export function parseType(
source: Source | string,
options?: ParseOptions,
): TypeNode;
export function parseConstValue<TOptions>(lexer: Lexer<TOptions>): ValueNode;
/**

@@ -52,0 +98,0 @@ * Type :

4

graphql/package.json
{
"name": "@types/graphql",
"version": "0.12.3",
"version": "0.12.4",
"description": "TypeScript definitions for graphql",

@@ -75,4 +75,4 @@ "license": "MIT",

"dependencies": {},
"typesPublisherContentHash": "c0a8a4db28ee02fe97bf0f0d223baaa0c5bb856a6305265bcfe83d4f4e137bb5",
"typesPublisherContentHash": "f7bae798345c296c53e9b5c93fe310a377146b88e88dc62162f4a76391a6176a",
"typeScriptVersion": "2.3"
}

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

Additional Details
* Last updated: Thu, 25 Jan 2018 17:59:35 GMT
* Last updated: Wed, 14 Feb 2018 01:13:03 GMT
* Dependencies: none

@@ -14,0 +14,0 @@ * Global values: none

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