File tree Expand file tree Collapse file tree 3 files changed +631
-659
lines changed Expand file tree Collapse file tree 3 files changed +631
-659
lines changed Original file line number Diff line number Diff line change 44
44
},
45
45
"dependencies" : {},
46
46
"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 " ,
52
52
"babel-eslint" : " 10.0.3" ,
53
53
"chai" : " 4.2.0" ,
54
54
"cspell" : " 4.0.44" ,
55
55
"dtslint" : " 2.0.5" ,
56
56
"eslint" : " 6.8.0" ,
57
57
"eslint-plugin-flowtype" : " 4.6.0" ,
58
58
"eslint-plugin-import" : " 2.20.0" ,
59
- "flow-bin" : " 0.116.0 " ,
59
+ "flow-bin" : " 0.116.1 " ,
60
60
"mocha" : " 7.0.0" ,
61
61
"nyc" : " 15.0.0" ,
62
62
"prettier" : " 1.19.1"
Original file line number Diff line number Diff line change @@ -347,13 +347,16 @@ export function assertAbstractType(type: mixed): GraphQLAbstractType {
347
347
* })
348
348
*
349
349
*/
350
+ // FIXME: workaround to fix issue with Babel parser
351
+ /* ::
350
352
declare class GraphQLList<+T: GraphQLType> {
351
353
+ofType: T;
352
354
static <T>(ofType: T): GraphQLList<T>;
353
355
// Note: constructors cannot be used for covariant types. Drop the "new".
354
356
constructor(ofType: GraphQLType): void;
355
357
}
356
- // eslint-disable-next-line no-redeclare
358
+ */
359
+
357
360
export function GraphQLList ( ofType ) {
358
361
if ( this instanceof GraphQLList ) {
359
362
this . ofType = assertType ( ofType ) ;
@@ -395,13 +398,16 @@ defineToJSON(GraphQLList);
395
398
*
396
399
* Note: the enforcement of non-nullability occurs within the executor.
397
400
*/
401
+ // FIXME: workaround to fix issue with Babel parser
402
+ /* ::
398
403
declare class GraphQLNonNull<+T: GraphQLNullableType> {
399
404
+ofType: T;
400
405
static <T>(ofType: T): GraphQLNonNull<T>;
401
406
// Note: constructors cannot be used for covariant types. Drop the "new".
402
407
constructor(ofType: GraphQLType): void;
403
408
}
404
- // eslint-disable-next-line no-redeclare
409
+ */
410
+
405
411
export function GraphQLNonNull ( ofType ) {
406
412
if ( this instanceof GraphQLNonNull ) {
407
413
this . ofType = assertNullableType ( ofType ) ;
You can’t perform that action at this time.
0 commit comments