@@ -378,7 +378,6 @@ export interface GraphQLScalarTypeConfig<TInternal, TExternal> {
378
378
export class GraphQLObjectType <
379
379
TSource = any ,
380
380
TContext = any ,
381
- TArgs = { [ key : string ] : any }
382
381
> {
383
382
name : string ;
384
383
description : Maybe < string > ;
@@ -388,10 +387,10 @@ export class GraphQLObjectType<
388
387
extensionASTNodes : Maybe < ReadonlyArray < ObjectTypeExtensionNode > > ;
389
388
390
389
constructor (
391
- config : Readonly < GraphQLObjectTypeConfig < TSource , TContext , TArgs > > ,
390
+ config : Readonly < GraphQLObjectTypeConfig < TSource , TContext > > ,
392
391
) ;
393
392
394
- getFields ( ) : GraphQLFieldMap < any , TContext , TArgs > ;
393
+ getFields ( ) : GraphQLFieldMap < any , TContext > ;
395
394
getInterfaces ( ) : Array < GraphQLInterfaceType > ;
396
395
397
396
toConfig ( ) : GraphQLObjectTypeConfig < any , any > & {
@@ -410,34 +409,30 @@ export function argsToArgsConfig(
410
409
args : ReadonlyArray < GraphQLArgument > ,
411
410
) : GraphQLFieldConfigArgumentMap ;
412
411
413
- // TS_SPECIFIC: TArgs
414
412
export interface GraphQLObjectTypeConfig <
415
413
TSource ,
416
414
TContext ,
417
- TArgs = { [ key : string ] : any }
418
415
> {
419
416
name : string ;
420
417
description ?: Maybe < string > ;
421
418
interfaces ?: Thunk < Maybe < Array < GraphQLInterfaceType > > > ;
422
- fields : Thunk < GraphQLFieldConfigMap < TSource , TContext , TArgs > > ;
419
+ fields : Thunk < GraphQLFieldConfigMap < TSource , TContext > > ;
423
420
isTypeOf ?: Maybe < GraphQLIsTypeOfFn < TSource , TContext > > ;
424
421
extensions ?: Maybe < Readonly < Record < string , any > > > ;
425
422
astNode ?: Maybe < ObjectTypeDefinitionNode > ;
426
423
extensionASTNodes ?: Maybe < ReadonlyArray < ObjectTypeExtensionNode > > ;
427
424
}
428
425
429
- // TS_SPECIFIC: TArgs
430
426
export type GraphQLTypeResolver <
431
427
TSource ,
432
428
TContext ,
433
- TArgs = { [ key : string ] : any }
434
429
> = (
435
430
value : TSource ,
436
431
context : TContext ,
437
432
info : GraphQLResolveInfo ,
438
433
abstractType : GraphQLAbstractType ,
439
434
) => PromiseOrValue <
440
- Maybe < GraphQLObjectType < TSource , TContext , TArgs > | string >
435
+ Maybe < GraphQLObjectType < TSource , TContext > | string >
441
436
> ;
442
437
443
438
export type GraphQLIsTypeOfFn < TSource , TContext > = (
@@ -497,13 +492,11 @@ export interface GraphQLArgumentConfig {
497
492
astNode ?: Maybe < InputValueDefinitionNode > ;
498
493
}
499
494
500
- // TS_SPECIFIC: TArgs
501
495
export type GraphQLFieldConfigMap <
502
496
TSource ,
503
497
TContext ,
504
- TArgs = { [ key : string ] : any }
505
498
> = {
506
- [ key : string ] : GraphQLFieldConfig < TSource , TContext , TArgs > ;
499
+ [ key : string ] : GraphQLFieldConfig < TSource , TContext > ;
507
500
} ;
508
501
509
502
export interface GraphQLField <
@@ -534,13 +527,11 @@ export interface GraphQLArgument {
534
527
535
528
export function isRequiredArgument ( arg : GraphQLArgument ) : boolean ;
536
529
537
- // TS_SPECIFIC: TArgs
538
530
export type GraphQLFieldMap <
539
531
TSource ,
540
532
TContext ,
541
- TArgs = { [ key : string ] : any }
542
533
> = {
543
- [ key : string ] : GraphQLField < TSource , TContext , TArgs > ;
534
+ [ key : string ] : GraphQLField < TSource , TContext > ;
544
535
} ;
545
536
546
537
/**
@@ -585,22 +576,20 @@ export class GraphQLInterfaceType {
585
576
inspect ( ) : string ;
586
577
}
587
578
588
- // TS_SPECIFIC: TArgs
589
579
export interface GraphQLInterfaceTypeConfig <
590
580
TSource ,
591
581
TContext ,
592
- TArgs = { [ key : string ] : any }
593
582
> {
594
583
name : string ;
595
584
description ?: Maybe < string > ;
596
585
interfaces ?: Thunk < Maybe < Array < GraphQLInterfaceType > > > ;
597
- fields : Thunk < GraphQLFieldConfigMap < TSource , TContext , TArgs > > ;
586
+ fields : Thunk < GraphQLFieldConfigMap < TSource , TContext > > ;
598
587
/**
599
588
* Optionally provide a custom type resolver function. If one is not provided,
600
589
* the default implementation will call `isTypeOf` on each implementing
601
590
* Object type.
602
591
*/
603
- resolveType ?: Maybe < GraphQLTypeResolver < TSource , TContext , TArgs > > ;
592
+ resolveType ?: Maybe < GraphQLTypeResolver < TSource , TContext > > ;
604
593
extensions ?: Maybe < Readonly < Record < string , any > > > ;
605
594
astNode ?: Maybe < InterfaceTypeDefinitionNode > ;
606
595
extensionASTNodes ?: Maybe < ReadonlyArray < InterfaceTypeExtensionNode > > ;
0 commit comments