From f11cf536ae16d436c73a927af666d81331a17f37 Mon Sep 17 00:00:00 2001 From: Ivan Goncharov Date: Tue, 24 Sep 2019 14:39:20 +0300 Subject: [PATCH] tstypes: fix typings for 'isSpecifiedDirective'/'isSpecifiedScalarType' Fixes #2153 --- tstypes/type/directives.d.ts | 4 +--- tstypes/type/scalars.d.ts | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/tstypes/type/directives.d.ts b/tstypes/type/directives.d.ts index 9719bf600e..ca9091a31e 100644 --- a/tstypes/type/directives.d.ts +++ b/tstypes/type/directives.d.ts @@ -67,6 +67,4 @@ export const GraphQLDeprecatedDirective: GraphQLDirective; */ export const specifiedDirectives: ReadonlyArray; -export function isSpecifiedDirective( - directive: any, -): directive is GraphQLDirective; +export function isSpecifiedDirective(directive: any): boolean; diff --git a/tstypes/type/scalars.d.ts b/tstypes/type/scalars.d.ts index fe16fd5cad..c7374908fc 100644 --- a/tstypes/type/scalars.d.ts +++ b/tstypes/type/scalars.d.ts @@ -8,4 +8,4 @@ export const GraphQLID: GraphQLScalarType; export const specifiedScalarTypes: ReadonlyArray; -export function isSpecifiedScalarType(type: any): type is GraphQLScalarType; +export function isSpecifiedScalarType(type: any): boolean;