Skip to content

Commit

Permalink
predicate-test: improve typecheck (#3023)
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanGoncharov committed Apr 4, 2021
1 parent 1ee3dc5 commit 814169b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/type/__tests__/predicate-test.js
Expand Up @@ -559,7 +559,7 @@ describe('Type predicates', () => {
});

describe('isRequiredArgument', () => {
function buildArg(config: $Shape<GraphQLArgument>) {
function buildArg(config: $Shape<GraphQLArgument>): GraphQLArgument {
return {
name: 'someArg',
description: undefined,
Expand Down Expand Up @@ -604,7 +604,9 @@ describe('Type predicates', () => {
});

describe('isRequiredInputField', () => {
function buildInputField(config: $Shape<GraphQLInputField>) {
function buildInputField(
config: $Shape<GraphQLInputField>,
): GraphQLInputField {
return {
name: 'someInputField',
description: undefined,
Expand Down

0 comments on commit 814169b

Please sign in to comment.