diff --git a/src/__tests__/starWarsData.js b/src/__tests__/starWarsData.js index 257d13d898..1c2b848ed9 100644 --- a/src/__tests__/starWarsData.js +++ b/src/__tests__/starWarsData.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ /** diff --git a/src/__tests__/starWarsIntrospection-test.js b/src/__tests__/starWarsIntrospection-test.js index b2c3d10d12..def838c9b2 100644 --- a/src/__tests__/starWarsIntrospection-test.js +++ b/src/__tests__/starWarsIntrospection-test.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ import { expect } from 'chai'; diff --git a/src/__tests__/starWarsQuery-test.js b/src/__tests__/starWarsQuery-test.js index 0033c4d332..0a00a82a04 100644 --- a/src/__tests__/starWarsQuery-test.js +++ b/src/__tests__/starWarsQuery-test.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ import { expect } from 'chai'; diff --git a/src/__tests__/starWarsSchema.js b/src/__tests__/starWarsSchema.js index dc9d9e5911..cec63843eb 100644 --- a/src/__tests__/starWarsSchema.js +++ b/src/__tests__/starWarsSchema.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ import { diff --git a/src/__tests__/starWarsValidation-test.js b/src/__tests__/starWarsValidation-test.js index ab11ab62e0..c9dbc4dbad 100644 --- a/src/__tests__/starWarsValidation-test.js +++ b/src/__tests__/starWarsValidation-test.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ import { expect } from 'chai'; diff --git a/src/error/GraphQLError.js b/src/error/GraphQLError.js index aaf7eab4df..b10df8c770 100644 --- a/src/error/GraphQLError.js +++ b/src/error/GraphQLError.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ import { printError } from './printError'; @@ -125,8 +125,7 @@ export function GraphQLError( // eslint-disable-line no-redeclare let _locations; if (positions && source) { - const providedSource = source; - _locations = positions.map(pos => getLocation(providedSource, pos)); + _locations = positions.map(pos => getLocation(source, pos)); } else if (_nodes) { _locations = _nodes.reduce((list, node) => { if (node.loc) { diff --git a/src/error/formatError.js b/src/error/formatError.js index f23f0cede7..e482d0d1ab 100644 --- a/src/error/formatError.js +++ b/src/error/formatError.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ import invariant from '../jsutils/invariant'; diff --git a/src/error/index.js b/src/error/index.js index 6a950d9391..3ca6fdb15f 100644 --- a/src/error/index.js +++ b/src/error/index.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ export { GraphQLError } from './GraphQLError'; diff --git a/src/error/locatedError.js b/src/error/locatedError.js index 55c626f151..05b83100d2 100644 --- a/src/error/locatedError.js +++ b/src/error/locatedError.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ import { GraphQLError } from './GraphQLError'; diff --git a/src/error/printError.js b/src/error/printError.js index 3cd4562228..c2f9971b1f 100644 --- a/src/error/printError.js +++ b/src/error/printError.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ import { getLocation } from '../language/location'; diff --git a/src/error/syntaxError.js b/src/error/syntaxError.js index ac1ac2ca05..6409f4051b 100644 --- a/src/error/syntaxError.js +++ b/src/error/syntaxError.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ import type { Source } from '../language/source'; diff --git a/src/execution/execute.js b/src/execution/execute.js index 961606726d..602eed2c21 100644 --- a/src/execution/execute.js +++ b/src/execution/execute.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ import { forEach, isCollection } from 'iterall'; diff --git a/src/execution/index.js b/src/execution/index.js index d6c10e212d..d793e2613a 100644 --- a/src/execution/index.js +++ b/src/execution/index.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ export { execute, defaultFieldResolver, responsePathAsArray } from './execute'; diff --git a/src/execution/values.js b/src/execution/values.js index 638f4b28b8..23ecca2045 100644 --- a/src/execution/values.js +++ b/src/execution/values.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ import { GraphQLError } from '../error'; diff --git a/src/graphql.js b/src/graphql.js index ac2c8efcbe..8b0fe061f2 100644 --- a/src/graphql.js +++ b/src/graphql.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ import { validateSchema } from './type/validate'; diff --git a/src/index.js b/src/index.js index c2558abd3c..17641bb615 100644 --- a/src/index.js +++ b/src/index.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ /** diff --git a/src/jsutils/MaybePromise.js b/src/jsutils/MaybePromise.js index a5689d6baf..07b68aa625 100644 --- a/src/jsutils/MaybePromise.js +++ b/src/jsutils/MaybePromise.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ export type MaybePromise = Promise | T; diff --git a/src/jsutils/ObjMap.js b/src/jsutils/ObjMap.js index c92895210a..140e60fec7 100644 --- a/src/jsutils/ObjMap.js +++ b/src/jsutils/ObjMap.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ export type ObjMap = { [key: string]: T, __proto__: null }; diff --git a/src/jsutils/dedent.js b/src/jsutils/dedent.js index af33a6391a..0239266e94 100644 --- a/src/jsutils/dedent.js +++ b/src/jsutils/dedent.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ /** diff --git a/src/jsutils/find.js b/src/jsutils/find.js index ef1cd68464..ba608d90b3 100644 --- a/src/jsutils/find.js +++ b/src/jsutils/find.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ export default function find( diff --git a/src/jsutils/getPromise.js b/src/jsutils/getPromise.js index 10deee94dd..e56a3af76e 100644 --- a/src/jsutils/getPromise.js +++ b/src/jsutils/getPromise.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ /** diff --git a/src/jsutils/instanceOf.js b/src/jsutils/instanceOf.js index cf5e204a0a..7fb45ae9f2 100644 --- a/src/jsutils/instanceOf.js +++ b/src/jsutils/instanceOf.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ /** diff --git a/src/jsutils/invariant.js b/src/jsutils/invariant.js index 8704978fb3..f4a51efb54 100644 --- a/src/jsutils/invariant.js +++ b/src/jsutils/invariant.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ export default function invariant(condition: mixed, message: string) { diff --git a/src/jsutils/isInvalid.js b/src/jsutils/isInvalid.js index 3821a8e44e..9ddbfed512 100644 --- a/src/jsutils/isInvalid.js +++ b/src/jsutils/isInvalid.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ /** diff --git a/src/jsutils/isNullish.js b/src/jsutils/isNullish.js index ab42786a66..aedd6c86dc 100644 --- a/src/jsutils/isNullish.js +++ b/src/jsutils/isNullish.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ /** diff --git a/src/jsutils/keyMap.js b/src/jsutils/keyMap.js index 680c58e508..58fce2f7ac 100644 --- a/src/jsutils/keyMap.js +++ b/src/jsutils/keyMap.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ import type { ObjMap } from './ObjMap'; diff --git a/src/jsutils/keyValMap.js b/src/jsutils/keyValMap.js index 49f4a74f13..7917f3ccce 100644 --- a/src/jsutils/keyValMap.js +++ b/src/jsutils/keyValMap.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ import type { ObjMap } from './ObjMap'; diff --git a/src/jsutils/memoize3.js b/src/jsutils/memoize3.js index 18d938fb53..37e3951d58 100644 --- a/src/jsutils/memoize3.js +++ b/src/jsutils/memoize3.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ /** diff --git a/src/jsutils/objectValues.js b/src/jsutils/objectValues.js index e7a4bb1c09..d6bab482e2 100644 --- a/src/jsutils/objectValues.js +++ b/src/jsutils/objectValues.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ import type { ObjMap } from './ObjMap'; diff --git a/src/jsutils/orList.js b/src/jsutils/orList.js index f8f39bf101..dc63e0db3c 100644 --- a/src/jsutils/orList.js +++ b/src/jsutils/orList.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ const MAX_LENGTH = 5; diff --git a/src/jsutils/promiseForObject.js b/src/jsutils/promiseForObject.js index 9ecaf00ecb..74d178760f 100644 --- a/src/jsutils/promiseForObject.js +++ b/src/jsutils/promiseForObject.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ import type { ObjMap } from './ObjMap'; diff --git a/src/jsutils/promiseReduce.js b/src/jsutils/promiseReduce.js index 576d94767d..c4f4cdfb74 100644 --- a/src/jsutils/promiseReduce.js +++ b/src/jsutils/promiseReduce.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ import getPromise from './getPromise'; diff --git a/src/jsutils/quotedOrList.js b/src/jsutils/quotedOrList.js index 78362ca884..f5670388cd 100644 --- a/src/jsutils/quotedOrList.js +++ b/src/jsutils/quotedOrList.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ import orList from './orList'; diff --git a/src/jsutils/suggestionList.js b/src/jsutils/suggestionList.js index 3d03591eca..e800d03a8c 100644 --- a/src/jsutils/suggestionList.js +++ b/src/jsutils/suggestionList.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ /** diff --git a/src/language/ast.js b/src/language/ast.js index 86d0d52438..6b6f5fbcd2 100644 --- a/src/language/ast.js +++ b/src/language/ast.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ import type { Source } from './source'; diff --git a/src/language/blockStringValue.js b/src/language/blockStringValue.js index 0167cf7876..ec2449ffeb 100644 --- a/src/language/blockStringValue.js +++ b/src/language/blockStringValue.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ /** diff --git a/src/language/directiveLocation.js b/src/language/directiveLocation.js index 8b6a5ec98a..0a87001c36 100644 --- a/src/language/directiveLocation.js +++ b/src/language/directiveLocation.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ /** diff --git a/src/language/index.js b/src/language/index.js index 66e5e1f840..a2f5d8314e 100644 --- a/src/language/index.js +++ b/src/language/index.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ export { getLocation } from './location'; diff --git a/src/language/kinds.js b/src/language/kinds.js index 0a45c10283..d67f748e34 100644 --- a/src/language/kinds.js +++ b/src/language/kinds.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ /** diff --git a/src/language/lexer.js b/src/language/lexer.js index e39436296f..8d4940d49e 100644 --- a/src/language/lexer.js +++ b/src/language/lexer.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ import type { Token } from './ast'; diff --git a/src/language/location.js b/src/language/location.js index d92a352573..8029d5b821 100644 --- a/src/language/location.js +++ b/src/language/location.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ import type { Source } from './source'; diff --git a/src/language/parser.js b/src/language/parser.js index cca271a420..20120eeb67 100644 --- a/src/language/parser.js +++ b/src/language/parser.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ import { Source } from './source'; diff --git a/src/language/source.js b/src/language/source.js index 7b989c024e..aae70b1df6 100644 --- a/src/language/source.js +++ b/src/language/source.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ import invariant from '../jsutils/invariant'; diff --git a/src/language/visitor.js b/src/language/visitor.js index 31937548ee..ef166e3726 100644 --- a/src/language/visitor.js +++ b/src/language/visitor.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ import type { ASTNode, ASTKindToNode } from './ast'; diff --git a/src/subscription/__tests__/eventEmitterAsyncIterator.js b/src/subscription/__tests__/eventEmitterAsyncIterator.js index 265e3233e5..5369610895 100644 --- a/src/subscription/__tests__/eventEmitterAsyncIterator.js +++ b/src/subscription/__tests__/eventEmitterAsyncIterator.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ import type EventEmitter from 'events'; diff --git a/src/subscription/__tests__/mapAsyncIterator-test.js b/src/subscription/__tests__/mapAsyncIterator-test.js index 9d8188f4da..e5554085f3 100644 --- a/src/subscription/__tests__/mapAsyncIterator-test.js +++ b/src/subscription/__tests__/mapAsyncIterator-test.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ import { expect } from 'chai'; diff --git a/src/subscription/asyncIteratorReject.js b/src/subscription/asyncIteratorReject.js index 2fe85039f9..7992dc6eb1 100644 --- a/src/subscription/asyncIteratorReject.js +++ b/src/subscription/asyncIteratorReject.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ import { $$asyncIterator } from 'iterall'; diff --git a/src/subscription/index.js b/src/subscription/index.js index c38e4bbb72..18831657cf 100644 --- a/src/subscription/index.js +++ b/src/subscription/index.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ export { subscribe, createSourceEventStream } from './subscribe'; diff --git a/src/subscription/mapAsyncIterator.js b/src/subscription/mapAsyncIterator.js index 7919850450..0c2015abca 100644 --- a/src/subscription/mapAsyncIterator.js +++ b/src/subscription/mapAsyncIterator.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ import { $$asyncIterator, getAsyncIterator } from 'iterall'; diff --git a/src/subscription/subscribe.js b/src/subscription/subscribe.js index 1b44eaa17d..a7fc1f69a8 100644 --- a/src/subscription/subscribe.js +++ b/src/subscription/subscribe.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ import { isAsyncIterable } from 'iterall'; diff --git a/src/type/definition.js b/src/type/definition.js index 9e3dfaa0b9..428304f71d 100644 --- a/src/type/definition.js +++ b/src/type/definition.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ import instanceOf from '../jsutils/instanceOf'; diff --git a/src/type/directives.js b/src/type/directives.js index ea4ea7e92a..aa8a734cce 100644 --- a/src/type/directives.js +++ b/src/type/directives.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ import type { diff --git a/src/type/index.js b/src/type/index.js index 4672841fa8..1f23b363ac 100644 --- a/src/type/index.js +++ b/src/type/index.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ export { diff --git a/src/type/introspection.js b/src/type/introspection.js index af78f42204..41bbbb53fd 100644 --- a/src/type/introspection.js +++ b/src/type/introspection.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ import isInvalid from '../jsutils/isInvalid'; diff --git a/src/type/scalars.js b/src/type/scalars.js index a9e08dc866..c60bcc8cdc 100644 --- a/src/type/scalars.js +++ b/src/type/scalars.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ import { GraphQLScalarType, isNamedType } from './definition'; diff --git a/src/type/schema.js b/src/type/schema.js index 9482a9d116..37a6d6a57f 100644 --- a/src/type/schema.js +++ b/src/type/schema.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ import { diff --git a/src/type/validate.js b/src/type/validate.js index decc7f3049..d65b0dc87c 100644 --- a/src/type/validate.js +++ b/src/type/validate.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ import { diff --git a/src/type/wrappers.js b/src/type/wrappers.js index 26a2e8ba9b..8ebec67729 100644 --- a/src/type/wrappers.js +++ b/src/type/wrappers.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ import { assertType, assertNullableType } from './definition'; diff --git a/src/utilities/TypeInfo.js b/src/utilities/TypeInfo.js index 5b99863521..80e9e957bd 100644 --- a/src/utilities/TypeInfo.js +++ b/src/utilities/TypeInfo.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ import { Kind } from '../language/kinds'; diff --git a/src/utilities/assertValidName.js b/src/utilities/assertValidName.js index 6b73c4c388..adc1185d61 100644 --- a/src/utilities/assertValidName.js +++ b/src/utilities/assertValidName.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ import { GraphQLError } from '../error/GraphQLError'; diff --git a/src/utilities/astFromValue.js b/src/utilities/astFromValue.js index a2cf4a6f76..b59b691519 100644 --- a/src/utilities/astFromValue.js +++ b/src/utilities/astFromValue.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ import { forEach, isCollection } from 'iterall'; diff --git a/src/utilities/buildASTSchema.js b/src/utilities/buildASTSchema.js index 8216a2e0f7..248c9a6c38 100644 --- a/src/utilities/buildASTSchema.js +++ b/src/utilities/buildASTSchema.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ import keyMap from '../jsutils/keyMap'; diff --git a/src/utilities/buildClientSchema.js b/src/utilities/buildClientSchema.js index cc883b3a88..bd1c796d7b 100644 --- a/src/utilities/buildClientSchema.js +++ b/src/utilities/buildClientSchema.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ import invariant from '../jsutils/invariant'; diff --git a/src/utilities/coerceValue.js b/src/utilities/coerceValue.js index c5ba791044..38a42d635c 100644 --- a/src/utilities/coerceValue.js +++ b/src/utilities/coerceValue.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ import { forEach, isCollection } from 'iterall'; diff --git a/src/utilities/concatAST.js b/src/utilities/concatAST.js index 37188ea840..edeaa8f41d 100644 --- a/src/utilities/concatAST.js +++ b/src/utilities/concatAST.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ import type { DocumentNode } from '../language/ast'; diff --git a/src/utilities/extendSchema.js b/src/utilities/extendSchema.js index 860e067fde..c7c7f6815f 100644 --- a/src/utilities/extendSchema.js +++ b/src/utilities/extendSchema.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ import invariant from '../jsutils/invariant'; diff --git a/src/utilities/findBreakingChanges.js b/src/utilities/findBreakingChanges.js index b5787df2d4..f4b65fdda4 100644 --- a/src/utilities/findBreakingChanges.js +++ b/src/utilities/findBreakingChanges.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ import { diff --git a/src/utilities/findDeprecatedUsages.js b/src/utilities/findDeprecatedUsages.js index af3a700964..ae4c1deab5 100644 --- a/src/utilities/findDeprecatedUsages.js +++ b/src/utilities/findDeprecatedUsages.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ import { GraphQLError } from '../error/GraphQLError'; diff --git a/src/utilities/getOperationAST.js b/src/utilities/getOperationAST.js index ad3af6b870..b4e491a7fa 100644 --- a/src/utilities/getOperationAST.js +++ b/src/utilities/getOperationAST.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ import { Kind } from '../language/kinds'; diff --git a/src/utilities/index.js b/src/utilities/index.js index 4593ba72d2..3825427c0a 100644 --- a/src/utilities/index.js +++ b/src/utilities/index.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ // The GraphQL query recommended for a full schema introspection. diff --git a/src/utilities/introspectionFromSchema.js b/src/utilities/introspectionFromSchema.js index c1797891d9..fa81609ff4 100644 --- a/src/utilities/introspectionFromSchema.js +++ b/src/utilities/introspectionFromSchema.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ import invariant from '../jsutils/invariant'; diff --git a/src/utilities/introspectionQuery.js b/src/utilities/introspectionQuery.js index 4071250998..9c67dbd0e4 100644 --- a/src/utilities/introspectionQuery.js +++ b/src/utilities/introspectionQuery.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ import type { DirectiveLocationEnum } from '../language/directiveLocation'; diff --git a/src/utilities/isValidJSValue.js b/src/utilities/isValidJSValue.js index 4c8c46e625..c68eeb056f 100644 --- a/src/utilities/isValidJSValue.js +++ b/src/utilities/isValidJSValue.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ import { coerceValue } from './coerceValue'; diff --git a/src/utilities/isValidLiteralValue.js b/src/utilities/isValidLiteralValue.js index 5b5a8bea90..6109218f11 100644 --- a/src/utilities/isValidLiteralValue.js +++ b/src/utilities/isValidLiteralValue.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ import { TypeInfo } from './TypeInfo'; diff --git a/src/utilities/lexicographicSortSchema.js b/src/utilities/lexicographicSortSchema.js index 657a2e6eb4..8593d24d7c 100644 --- a/src/utilities/lexicographicSortSchema.js +++ b/src/utilities/lexicographicSortSchema.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ import type { ObjMap } from '../jsutils/ObjMap'; @@ -40,7 +40,7 @@ export function lexicographicSortSchema(schema: GraphQLSchema): GraphQLSchema { const sortMaybeType = maybeType => maybeType && sortNamedType(maybeType); return new GraphQLSchema({ - types: sortByName(objectValues(schema.getTypeMap()).map(sortNamedType)), + types: sortTypes(objectValues(schema.getTypeMap())), directives: sortByName(schema.getDirectives()).map(sortDirective), query: sortMaybeType(schema.getQueryType()), mutation: sortMaybeType(schema.getMutationType()), @@ -70,26 +70,24 @@ export function lexicographicSortSchema(schema: GraphQLSchema): GraphQLSchema { } function sortFields(fieldsMap) { - return () => - sortObjMap(fieldsMap, field => ({ - type: sortType(field.type), - args: sortArgs(field.args), - resolve: field.resolve, - subscribe: field.subscribe, - deprecationReason: field.deprecationReason, - description: field.description, - astNode: field.astNode, - })); + return sortObjMap(fieldsMap, field => ({ + type: sortType(field.type), + args: sortArgs(field.args), + resolve: field.resolve, + subscribe: field.subscribe, + deprecationReason: field.deprecationReason, + description: field.description, + astNode: field.astNode, + })); } function sortInputFields(fieldsMap) { - return () => - sortObjMap(fieldsMap, field => ({ - type: sortType(field.type), - defaultValue: field.defaultValue, - description: field.description, - astNode: field.astNode, - })); + return sortObjMap(fieldsMap, field => ({ + type: sortType(field.type), + defaultValue: field.defaultValue, + description: field.description, + astNode: field.astNode, + })); } function sortType(type) { @@ -101,8 +99,8 @@ export function lexicographicSortSchema(schema: GraphQLSchema): GraphQLSchema { return sortNamedType(type); } - function sortTypes(arr: Array): () => Array { - return () => sortByName(arr).map(sortNamedType); + function sortTypes(arr: Array): Array { + return sortByName(arr).map(sortNamedType); } function sortNamedType(type: T): T { @@ -124,8 +122,8 @@ export function lexicographicSortSchema(schema: GraphQLSchema): GraphQLSchema { } else if (isObjectType(type)) { return new GraphQLObjectType({ name: type.name, - interfaces: sortTypes(type.getInterfaces()), - fields: sortFields(type.getFields()), + interfaces: () => sortTypes(type.getInterfaces()), + fields: () => sortFields(type.getFields()), isTypeOf: type.isTypeOf, description: type.description, astNode: type.astNode, @@ -134,7 +132,7 @@ export function lexicographicSortSchema(schema: GraphQLSchema): GraphQLSchema { } else if (isInterfaceType(type)) { return new GraphQLInterfaceType({ name: type.name, - fields: sortFields(type.getFields()), + fields: () => sortFields(type.getFields()), resolveType: type.resolveType, description: type.description, astNode: type.astNode, @@ -143,7 +141,7 @@ export function lexicographicSortSchema(schema: GraphQLSchema): GraphQLSchema { } else if (isUnionType(type)) { return new GraphQLUnionType({ name: type.name, - types: sortTypes(type.getTypes()), + types: () => sortTypes(type.getTypes()), resolveType: type.resolveType, description: type.description, astNode: type.astNode, @@ -167,7 +165,7 @@ export function lexicographicSortSchema(schema: GraphQLSchema): GraphQLSchema { } else if (isInputObjectType(type)) { return new GraphQLInputObjectType({ name: type.name, - fields: sortInputFields(type.getFields()), + fields: () => sortInputFields(type.getFields()), description: type.description, astNode: type.astNode, }); diff --git a/src/utilities/schemaPrinter.js b/src/utilities/schemaPrinter.js index f52785e9d0..a630f27d23 100644 --- a/src/utilities/schemaPrinter.js +++ b/src/utilities/schemaPrinter.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ import isNullish from '../jsutils/isNullish'; diff --git a/src/utilities/separateOperations.js b/src/utilities/separateOperations.js index 0a4d6a9989..4087fc1242 100644 --- a/src/utilities/separateOperations.js +++ b/src/utilities/separateOperations.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ import { visit } from '../language/visitor'; diff --git a/src/utilities/typeComparators.js b/src/utilities/typeComparators.js index 616a04723b..aefd095755 100644 --- a/src/utilities/typeComparators.js +++ b/src/utilities/typeComparators.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ import { diff --git a/src/utilities/typeFromAST.js b/src/utilities/typeFromAST.js index 247888a189..07a25fd02b 100644 --- a/src/utilities/typeFromAST.js +++ b/src/utilities/typeFromAST.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ import { Kind } from '../language/kinds'; diff --git a/src/utilities/valueFromAST.js b/src/utilities/valueFromAST.js index bc885fd69f..e23a03a89c 100644 --- a/src/utilities/valueFromAST.js +++ b/src/utilities/valueFromAST.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ import keyMap from '../jsutils/keyMap'; diff --git a/src/utilities/valueFromASTUntyped.js b/src/utilities/valueFromASTUntyped.js index 66536b09f6..c6b3c808da 100644 --- a/src/utilities/valueFromASTUntyped.js +++ b/src/utilities/valueFromASTUntyped.js @@ -1,4 +1,4 @@ -/* @flow */ +/* @flow strict */ /** * Copyright (c) 2017, Facebook, Inc. * All rights reserved. diff --git a/src/validation/index.js b/src/validation/index.js index f1e18c08af..01b7e47e2f 100644 --- a/src/validation/index.js +++ b/src/validation/index.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ export { validate, ValidationContext } from './validate'; diff --git a/src/validation/rules/ExecutableDefinitions.js b/src/validation/rules/ExecutableDefinitions.js index 865f15a0ab..6f8c5ec6fa 100644 --- a/src/validation/rules/ExecutableDefinitions.js +++ b/src/validation/rules/ExecutableDefinitions.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ import type { ValidationContext } from '../index'; diff --git a/src/validation/rules/FieldsOnCorrectType.js b/src/validation/rules/FieldsOnCorrectType.js index 5b8b8a252c..c779a4270e 100644 --- a/src/validation/rules/FieldsOnCorrectType.js +++ b/src/validation/rules/FieldsOnCorrectType.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ import type { ValidationContext } from '../index'; diff --git a/src/validation/rules/FragmentsOnCompositeTypes.js b/src/validation/rules/FragmentsOnCompositeTypes.js index e3f367f0e0..83378629e4 100644 --- a/src/validation/rules/FragmentsOnCompositeTypes.js +++ b/src/validation/rules/FragmentsOnCompositeTypes.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ import type { ValidationContext } from '../index'; diff --git a/src/validation/rules/KnownArgumentNames.js b/src/validation/rules/KnownArgumentNames.js index 5c3e99013b..b2b77f4834 100644 --- a/src/validation/rules/KnownArgumentNames.js +++ b/src/validation/rules/KnownArgumentNames.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ import type { ValidationContext } from '../index'; diff --git a/src/validation/rules/KnownDirectives.js b/src/validation/rules/KnownDirectives.js index dd17831985..61ce36e48a 100644 --- a/src/validation/rules/KnownDirectives.js +++ b/src/validation/rules/KnownDirectives.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ import type { ValidationContext } from '../index'; diff --git a/src/validation/rules/KnownFragmentNames.js b/src/validation/rules/KnownFragmentNames.js index dfab6ae101..33db878324 100644 --- a/src/validation/rules/KnownFragmentNames.js +++ b/src/validation/rules/KnownFragmentNames.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ import type { ValidationContext } from '../index'; diff --git a/src/validation/rules/KnownTypeNames.js b/src/validation/rules/KnownTypeNames.js index c057d7fa86..6da7c2d0e7 100644 --- a/src/validation/rules/KnownTypeNames.js +++ b/src/validation/rules/KnownTypeNames.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ import type { ValidationContext } from '../index'; diff --git a/src/validation/rules/LoneAnonymousOperation.js b/src/validation/rules/LoneAnonymousOperation.js index 5b32bf5da8..9dbe41a8a4 100644 --- a/src/validation/rules/LoneAnonymousOperation.js +++ b/src/validation/rules/LoneAnonymousOperation.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ import type { ValidationContext } from '../index'; diff --git a/src/validation/rules/NoFragmentCycles.js b/src/validation/rules/NoFragmentCycles.js index 1edefaf8b5..2c7891aa3a 100644 --- a/src/validation/rules/NoFragmentCycles.js +++ b/src/validation/rules/NoFragmentCycles.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ import type { ValidationContext } from '../index'; diff --git a/src/validation/rules/NoUndefinedVariables.js b/src/validation/rules/NoUndefinedVariables.js index 72b0137f97..0fdcac4a01 100644 --- a/src/validation/rules/NoUndefinedVariables.js +++ b/src/validation/rules/NoUndefinedVariables.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ import type { ValidationContext } from '../index'; diff --git a/src/validation/rules/NoUnusedFragments.js b/src/validation/rules/NoUnusedFragments.js index 19ead757f9..5a0902e772 100644 --- a/src/validation/rules/NoUnusedFragments.js +++ b/src/validation/rules/NoUnusedFragments.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ import type { ValidationContext } from '../index'; diff --git a/src/validation/rules/NoUnusedVariables.js b/src/validation/rules/NoUnusedVariables.js index 4788f68251..505abd04a6 100644 --- a/src/validation/rules/NoUnusedVariables.js +++ b/src/validation/rules/NoUnusedVariables.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ import type { ValidationContext } from '../index'; diff --git a/src/validation/rules/OverlappingFieldsCanBeMerged.js b/src/validation/rules/OverlappingFieldsCanBeMerged.js index b99ca8b839..b37f2f4156 100644 --- a/src/validation/rules/OverlappingFieldsCanBeMerged.js +++ b/src/validation/rules/OverlappingFieldsCanBeMerged.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ import type { ValidationContext } from '../index'; diff --git a/src/validation/rules/PossibleFragmentSpreads.js b/src/validation/rules/PossibleFragmentSpreads.js index a3342cf740..614b32c564 100644 --- a/src/validation/rules/PossibleFragmentSpreads.js +++ b/src/validation/rules/PossibleFragmentSpreads.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ import type { ValidationContext } from '../index'; diff --git a/src/validation/rules/ProvidedNonNullArguments.js b/src/validation/rules/ProvidedNonNullArguments.js index 1994917431..cbefff5d90 100644 --- a/src/validation/rules/ProvidedNonNullArguments.js +++ b/src/validation/rules/ProvidedNonNullArguments.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ import type { ValidationContext } from '../index'; diff --git a/src/validation/rules/ScalarLeafs.js b/src/validation/rules/ScalarLeafs.js index 29a40ee434..22fa642a6a 100644 --- a/src/validation/rules/ScalarLeafs.js +++ b/src/validation/rules/ScalarLeafs.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ import type { ValidationContext } from '../index'; diff --git a/src/validation/rules/SingleFieldSubscriptions.js b/src/validation/rules/SingleFieldSubscriptions.js index 280155800e..af0650baaf 100644 --- a/src/validation/rules/SingleFieldSubscriptions.js +++ b/src/validation/rules/SingleFieldSubscriptions.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ import type { ValidationContext } from '../index'; diff --git a/src/validation/rules/UniqueArgumentNames.js b/src/validation/rules/UniqueArgumentNames.js index 66da7c3651..31c4af7099 100644 --- a/src/validation/rules/UniqueArgumentNames.js +++ b/src/validation/rules/UniqueArgumentNames.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ import type { ValidationContext } from '../index'; diff --git a/src/validation/rules/UniqueDirectivesPerLocation.js b/src/validation/rules/UniqueDirectivesPerLocation.js index 80b6b0512d..3bc6fe18f4 100644 --- a/src/validation/rules/UniqueDirectivesPerLocation.js +++ b/src/validation/rules/UniqueDirectivesPerLocation.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ import type { ValidationContext } from '../index'; diff --git a/src/validation/rules/UniqueFragmentNames.js b/src/validation/rules/UniqueFragmentNames.js index 41d274621d..eab401ffb6 100644 --- a/src/validation/rules/UniqueFragmentNames.js +++ b/src/validation/rules/UniqueFragmentNames.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ import type { ValidationContext } from '../index'; diff --git a/src/validation/rules/UniqueInputFieldNames.js b/src/validation/rules/UniqueInputFieldNames.js index 0659a4317c..96e39bea87 100644 --- a/src/validation/rules/UniqueInputFieldNames.js +++ b/src/validation/rules/UniqueInputFieldNames.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ import type { ValidationContext } from '../index'; diff --git a/src/validation/rules/UniqueOperationNames.js b/src/validation/rules/UniqueOperationNames.js index 0b67bec8ff..04fc7addc1 100644 --- a/src/validation/rules/UniqueOperationNames.js +++ b/src/validation/rules/UniqueOperationNames.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ import type { ValidationContext } from '../index'; diff --git a/src/validation/rules/UniqueVariableNames.js b/src/validation/rules/UniqueVariableNames.js index 567cc1bb9a..a6d2e7cea8 100644 --- a/src/validation/rules/UniqueVariableNames.js +++ b/src/validation/rules/UniqueVariableNames.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ import type { ValidationContext } from '../index'; diff --git a/src/validation/rules/ValuesOfCorrectType.js b/src/validation/rules/ValuesOfCorrectType.js index 1815f00e41..532b670b8f 100644 --- a/src/validation/rules/ValuesOfCorrectType.js +++ b/src/validation/rules/ValuesOfCorrectType.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ import type { ValidationContext } from '../index'; diff --git a/src/validation/rules/VariablesAreInputTypes.js b/src/validation/rules/VariablesAreInputTypes.js index b1772f1b81..74bbf663d7 100644 --- a/src/validation/rules/VariablesAreInputTypes.js +++ b/src/validation/rules/VariablesAreInputTypes.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ import type { ValidationContext } from '../index'; diff --git a/src/validation/rules/VariablesDefaultValueAllowed.js b/src/validation/rules/VariablesDefaultValueAllowed.js index b03b16b44c..2b93963032 100644 --- a/src/validation/rules/VariablesDefaultValueAllowed.js +++ b/src/validation/rules/VariablesDefaultValueAllowed.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ import type { ValidationContext } from '../index'; diff --git a/src/validation/rules/VariablesInAllowedPosition.js b/src/validation/rules/VariablesInAllowedPosition.js index 498644f7f8..e7214ed44e 100644 --- a/src/validation/rules/VariablesInAllowedPosition.js +++ b/src/validation/rules/VariablesInAllowedPosition.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ import type { ValidationContext } from '../index'; diff --git a/src/validation/specifiedRules.js b/src/validation/specifiedRules.js index 72292a1783..48268e5dc6 100644 --- a/src/validation/specifiedRules.js +++ b/src/validation/specifiedRules.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ // Spec Section: "Executable Definitions" diff --git a/src/validation/validate.js b/src/validation/validate.js index 1a5d425fca..09a7494c8d 100644 --- a/src/validation/validate.js +++ b/src/validation/validate.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @flow + * @flow strict */ import invariant from '../jsutils/invariant';