Skip to content

Commit

Permalink
tstypes: fix typings for 'isSpecifiedDirective'/'isSpecifiedSca… (#2195)
Browse files Browse the repository at this point in the history
Fixes #2153
  • Loading branch information
IvanGoncharov committed Sep 25, 2019
1 parent 367ab23 commit 1a0e918
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions tstypes/type/directives.d.ts
Expand Up @@ -67,6 +67,4 @@ export const GraphQLDeprecatedDirective: GraphQLDirective;
*/
export const specifiedDirectives: ReadonlyArray<GraphQLDirective>;

export function isSpecifiedDirective(
directive: any,
): directive is GraphQLDirective;
export function isSpecifiedDirective(directive: any): boolean;
2 changes: 1 addition & 1 deletion tstypes/type/scalars.d.ts
Expand Up @@ -8,4 +8,4 @@ export const GraphQLID: GraphQLScalarType;

export const specifiedScalarTypes: ReadonlyArray<GraphQLScalarType>;

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

0 comments on commit 1a0e918

Please sign in to comment.