@types/graphql
Advanced tools
Comparing version 0.12.3 to 0.12.4
@@ -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 : |
{ | ||
"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 |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
97118
2990