Skip to content

Commit 1a0e918

Browse files
tstypes: fix typings for 'isSpecifiedDirective'/'isSpecifiedSca… (#2195)
Fixes #2153
1 parent 367ab23 commit 1a0e918

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

tstypes/type/directives.d.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,4 @@ export const GraphQLDeprecatedDirective: GraphQLDirective;
6767
*/
6868
export const specifiedDirectives: ReadonlyArray<GraphQLDirective>;
6969

70-
export function isSpecifiedDirective(
71-
directive: any,
72-
): directive is GraphQLDirective;
70+
export function isSpecifiedDirective(directive: any): boolean;

tstypes/type/scalars.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ export const GraphQLID: GraphQLScalarType;
88

99
export const specifiedScalarTypes: ReadonlyArray<GraphQLScalarType>;
1010

11-
export function isSpecifiedScalarType(type: any): type is GraphQLScalarType;
11+
export function isSpecifiedScalarType(type: any): boolean;

0 commit comments

Comments
 (0)