Skip to content

Commit d447244

Browse files
Update Babel (#2370)
1 parent a9bf2f5 commit d447244

File tree

3 files changed

+631
-659
lines changed

3 files changed

+631
-659
lines changed

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,19 +44,19 @@
4444
},
4545
"dependencies": {},
4646
"devDependencies": {
47-
"@babel/core": "7.6.2",
48-
"@babel/plugin-transform-flow-strip-types": "7.4.4",
49-
"@babel/polyfill": "7.6.0",
50-
"@babel/preset-env": "7.6.2",
51-
"@babel/register": "7.6.2",
47+
"@babel/core": "7.8.3",
48+
"@babel/plugin-transform-flow-strip-types": "7.8.3",
49+
"@babel/polyfill": "7.8.3",
50+
"@babel/preset-env": "7.8.3",
51+
"@babel/register": "7.8.3",
5252
"babel-eslint": "10.0.3",
5353
"chai": "4.2.0",
5454
"cspell": "4.0.44",
5555
"dtslint": "2.0.5",
5656
"eslint": "6.8.0",
5757
"eslint-plugin-flowtype": "4.6.0",
5858
"eslint-plugin-import": "2.20.0",
59-
"flow-bin": "0.116.0",
59+
"flow-bin": "0.116.1",
6060
"mocha": "7.0.0",
6161
"nyc": "15.0.0",
6262
"prettier": "1.19.1"

src/type/definition.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,13 +347,16 @@ export function assertAbstractType(type: mixed): GraphQLAbstractType {
347347
* })
348348
*
349349
*/
350+
// FIXME: workaround to fix issue with Babel parser
351+
/* ::
350352
declare class GraphQLList<+T: GraphQLType> {
351353
+ofType: T;
352354
static <T>(ofType: T): GraphQLList<T>;
353355
// Note: constructors cannot be used for covariant types. Drop the "new".
354356
constructor(ofType: GraphQLType): void;
355357
}
356-
// eslint-disable-next-line no-redeclare
358+
*/
359+
357360
export function GraphQLList(ofType) {
358361
if (this instanceof GraphQLList) {
359362
this.ofType = assertType(ofType);
@@ -395,13 +398,16 @@ defineToJSON(GraphQLList);
395398
*
396399
* Note: the enforcement of non-nullability occurs within the executor.
397400
*/
401+
// FIXME: workaround to fix issue with Babel parser
402+
/* ::
398403
declare class GraphQLNonNull<+T: GraphQLNullableType> {
399404
+ofType: T;
400405
static <T>(ofType: T): GraphQLNonNull<T>;
401406
// Note: constructors cannot be used for covariant types. Drop the "new".
402407
constructor(ofType: GraphQLType): void;
403408
}
404-
// eslint-disable-next-line no-redeclare
409+
*/
410+
405411
export function GraphQLNonNull(ofType) {
406412
if (this instanceof GraphQLNonNull) {
407413
this.ofType = assertNullableType(ofType);

0 commit comments

Comments
 (0)