Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5fe3926

Browse files
IvanGoncharovleebyron
authored andcommitted
Update flow + "@flow strict" (graphql#1229)
* Update Flow to 0.65.0 * Replace '@flow' with '@flow strict' * Partial revert of graphql#1160 * lexicographicSortSchema: Remove workarounds for non-const args * Reduce scope of change * Reduce scope of change
1 parent 7b92875 commit 5fe3926

File tree

111 files changed

+135
-138
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

111 files changed

+135
-138
lines changed

src/__tests__/starWarsData.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* This source code is licensed under the MIT license found in the
55
* LICENSE file in the root directory of this source tree.
66
*
7-
* @flow
7+
* @flow strict
88
*/
99

1010
/**

src/__tests__/starWarsIntrospection-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* This source code is licensed under the MIT license found in the
55
* LICENSE file in the root directory of this source tree.
66
*
7-
* @flow
7+
* @flow strict
88
*/
99

1010
import { expect } from 'chai';

src/__tests__/starWarsQuery-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* This source code is licensed under the MIT license found in the
55
* LICENSE file in the root directory of this source tree.
66
*
7-
* @flow
7+
* @flow strict
88
*/
99

1010
import { expect } from 'chai';

src/__tests__/starWarsSchema.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* This source code is licensed under the MIT license found in the
55
* LICENSE file in the root directory of this source tree.
66
*
7-
* @flow
7+
* @flow strict
88
*/
99

1010
import {

src/__tests__/starWarsValidation-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* This source code is licensed under the MIT license found in the
55
* LICENSE file in the root directory of this source tree.
66
*
7-
* @flow
7+
* @flow strict
88
*/
99

1010
import { expect } from 'chai';

src/error/GraphQLError.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* This source code is licensed under the MIT license found in the
55
* LICENSE file in the root directory of this source tree.
66
*
7-
* @flow
7+
* @flow strict
88
*/
99

1010
import { printError } from './printError';
@@ -125,8 +125,7 @@ export function GraphQLError( // eslint-disable-line no-redeclare
125125

126126
let _locations;
127127
if (positions && source) {
128-
const providedSource = source;
129-
_locations = positions.map(pos => getLocation(providedSource, pos));
128+
_locations = positions.map(pos => getLocation(source, pos));
130129
} else if (_nodes) {
131130
_locations = _nodes.reduce((list, node) => {
132131
if (node.loc) {

src/error/formatError.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* This source code is licensed under the MIT license found in the
55
* LICENSE file in the root directory of this source tree.
66
*
7-
* @flow
7+
* @flow strict
88
*/
99

1010
import invariant from '../jsutils/invariant';

src/error/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* This source code is licensed under the MIT license found in the
55
* LICENSE file in the root directory of this source tree.
66
*
7-
* @flow
7+
* @flow strict
88
*/
99

1010
export { GraphQLError } from './GraphQLError';

src/error/locatedError.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* This source code is licensed under the MIT license found in the
55
* LICENSE file in the root directory of this source tree.
66
*
7-
* @flow
7+
* @flow strict
88
*/
99

1010
import { GraphQLError } from './GraphQLError';

src/error/printError.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* This source code is licensed under the MIT license found in the
55
* LICENSE file in the root directory of this source tree.
66
*
7-
* @flow
7+
* @flow strict
88
*/
99

1010
import { getLocation } from '../language/location';

0 commit comments

Comments
 (0)