graphql-language-service
Advanced tools
Comparing version
@@ -9,7 +9,7 @@ import { GraphQLSchema, GraphQLType } from 'graphql'; | ||
export declare function getHoverInformation(schema: GraphQLSchema, queryText: string, cursor: IPosition, contextToken?: ContextToken, config?: HoverConfig): Hover['contents']; | ||
export declare function renderField(into: string[], typeInfo: AllTypeInfo, options: any): void; | ||
export declare function renderDirective(into: string[], typeInfo: AllTypeInfo, _options: any): void; | ||
export declare function renderArg(into: string[], typeInfo: AllTypeInfo, options: any): void; | ||
export declare function renderEnumValue(into: string[], typeInfo: AllTypeInfo, options: any): void; | ||
export declare function renderType(into: string[], typeInfo: AllTypeInfo, options: any, t: GraphQLType): void; | ||
export declare function renderField(into: string[], typeInfo: AllTypeInfo, options: HoverConfig): void; | ||
export declare function renderDirective(into: string[], typeInfo: AllTypeInfo, _options: HoverConfig): void; | ||
export declare function renderArg(into: string[], typeInfo: AllTypeInfo, options: HoverConfig): void; | ||
export declare function renderEnumValue(into: string[], typeInfo: AllTypeInfo, options: HoverConfig): void; | ||
export declare function renderType(into: string[], typeInfo: AllTypeInfo, options: HoverConfig, t: GraphQLType): void; | ||
//# sourceMappingURL=getHoverInformation.d.ts.map |
@@ -167,3 +167,3 @@ "use strict"; | ||
} | ||
const reason = def.deprecationReason || null; | ||
const reason = def.deprecationReason; | ||
if (!reason) { | ||
@@ -170,0 +170,0 @@ return; |
@@ -191,2 +191,3 @@ "use strict"; | ||
required: [], | ||
additionalProperties: false, | ||
}; | ||
@@ -193,0 +194,0 @@ const runtimeOptions = Object.assign(Object.assign({}, options), { definitionMarker: new Marker(), scalarSchemas: Object.assign(Object.assign({}, defaultScalarTypesMap), options === null || options === void 0 ? void 0 : options.scalarSchemas) }); |
@@ -9,7 +9,7 @@ import { GraphQLSchema, GraphQLType } from 'graphql'; | ||
export declare function getHoverInformation(schema: GraphQLSchema, queryText: string, cursor: IPosition, contextToken?: ContextToken, config?: HoverConfig): Hover['contents']; | ||
export declare function renderField(into: string[], typeInfo: AllTypeInfo, options: any): void; | ||
export declare function renderDirective(into: string[], typeInfo: AllTypeInfo, _options: any): void; | ||
export declare function renderArg(into: string[], typeInfo: AllTypeInfo, options: any): void; | ||
export declare function renderEnumValue(into: string[], typeInfo: AllTypeInfo, options: any): void; | ||
export declare function renderType(into: string[], typeInfo: AllTypeInfo, options: any, t: GraphQLType): void; | ||
export declare function renderField(into: string[], typeInfo: AllTypeInfo, options: HoverConfig): void; | ||
export declare function renderDirective(into: string[], typeInfo: AllTypeInfo, _options: HoverConfig): void; | ||
export declare function renderArg(into: string[], typeInfo: AllTypeInfo, options: HoverConfig): void; | ||
export declare function renderEnumValue(into: string[], typeInfo: AllTypeInfo, options: HoverConfig): void; | ||
export declare function renderType(into: string[], typeInfo: AllTypeInfo, options: HoverConfig, t: GraphQLType): void; | ||
//# sourceMappingURL=getHoverInformation.d.ts.map |
@@ -158,3 +158,3 @@ import { GraphQLNonNull, GraphQLList, } from 'graphql'; | ||
} | ||
const reason = def.deprecationReason || null; | ||
const reason = def.deprecationReason; | ||
if (!reason) { | ||
@@ -161,0 +161,0 @@ return; |
@@ -188,2 +188,3 @@ import { isEnumType, isInputObjectType, isListType, isNonNullType, isScalarType, } from 'graphql'; | ||
required: [], | ||
additionalProperties: false, | ||
}; | ||
@@ -190,0 +191,0 @@ const runtimeOptions = Object.assign(Object.assign({}, options), { definitionMarker: new Marker(), scalarSchemas: Object.assign(Object.assign({}, defaultScalarTypesMap), options === null || options === void 0 ? void 0 : options.scalarSchemas) }); |
{ | ||
"name": "graphql-language-service", | ||
"version": "5.3.2-canary-a173bad7.0", | ||
"version": "5.3.2-canary-b05ed7ff.0", | ||
"description": "The official, runtime independent Language Service for GraphQL", | ||
@@ -5,0 +5,0 @@ "contributors": [ |
@@ -196,7 +196,5 @@ /** | ||
const line = location.line - 1; | ||
// @ts-ignore | ||
// https://github.com/microsoft/TypeScript/pull/32695 | ||
// @ts-expect-error -- https://github.com/microsoft/TypeScript/pull/32695 | ||
const start = stream.getStartOfToken(); | ||
// @ts-ignore | ||
// https://github.com/microsoft/TypeScript/pull/32695 | ||
// @ts-expect-error -- https://github.com/microsoft/TypeScript/pull/32695 | ||
const end = stream.getCurrentPosition(); | ||
@@ -203,0 +201,0 @@ return new Range(new Position(line, start), new Position(line, end)); |
@@ -108,3 +108,3 @@ /** | ||
function renderMdCodeStart(into: string[], options: any) { | ||
function renderMdCodeStart(into: string[], options: HoverConfig) { | ||
if (options.useMarkdown) { | ||
@@ -123,3 +123,3 @@ text(into, '```graphql\n'); | ||
typeInfo: AllTypeInfo, | ||
options: any, | ||
options: HoverConfig, | ||
) { | ||
@@ -133,3 +133,3 @@ renderQualifiedField(into, typeInfo, options); | ||
typeInfo: AllTypeInfo, | ||
options: any, | ||
options: HoverConfig, | ||
) { | ||
@@ -150,3 +150,3 @@ if (!typeInfo.fieldDef) { | ||
typeInfo: AllTypeInfo, | ||
_options: any, | ||
_options: HoverConfig, | ||
) { | ||
@@ -160,3 +160,7 @@ if (!typeInfo.directiveDef) { | ||
export function renderArg(into: string[], typeInfo: AllTypeInfo, options: any) { | ||
export function renderArg( | ||
into: string[], | ||
typeInfo: AllTypeInfo, | ||
options: HoverConfig, | ||
) { | ||
if (typeInfo.directiveDef) { | ||
@@ -182,3 +186,3 @@ renderDirective(into, typeInfo, options); | ||
typeInfo: AllTypeInfo, | ||
options: any, | ||
options: HoverConfig, | ||
t: GraphQLType, | ||
@@ -193,3 +197,3 @@ ) { | ||
typeInfo: AllTypeInfo, | ||
options: any, | ||
options: HoverConfig, | ||
) { | ||
@@ -208,3 +212,3 @@ if (!typeInfo.enumValue) { | ||
typeInfo: AllTypeInfo, | ||
options: any, | ||
options: HoverConfig, | ||
t: GraphQLType, | ||
@@ -230,3 +234,3 @@ ) { | ||
into: string[], | ||
options: any, | ||
options: HoverConfig, | ||
// TODO: Figure out the right type for this one | ||
@@ -249,4 +253,4 @@ def: any, | ||
into: string[], | ||
_options: any, | ||
def: GraphQLField<any, any> | GraphQLFieldConfig<any, any>, | ||
_options: HoverConfig, | ||
def: GraphQLField<unknown, unknown> | GraphQLFieldConfig<unknown, unknown>, | ||
) { | ||
@@ -257,3 +261,3 @@ if (!def) { | ||
const reason = def.deprecationReason || null; | ||
const reason = def.deprecationReason; | ||
if (!reason) { | ||
@@ -260,0 +264,0 @@ return; |
@@ -362,2 +362,3 @@ /** | ||
required: [], | ||
additionalProperties: false, | ||
}; | ||
@@ -364,0 +365,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
825553
0.04%15635
0.03%