From 1a0e918872a14e3bb24416f6b327dcc252fdb850 Mon Sep 17 00:00:00 2001 From: Ivan Goncharov Date: Wed, 25 Sep 2019 16:46:54 +0300 Subject: [PATCH] =?UTF-8?q?tstypes:=20fix=20typings=20for=20'isSpecifiedDi?= =?UTF-8?q?rective'/'isSpecifiedSca=E2=80=A6=20(#2195)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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;