@@ -375,23 +375,17 @@ export interface GraphQLScalarTypeConfig<TInternal, TExternal> {
375
375
* });
376
376
*
377
377
*/
378
- export class GraphQLObjectType <
379
- TSource = any ,
380
- TContext = any ,
381
- TArgs = { [ key : string ] : any }
382
- > {
378
+ export class GraphQLObjectType < TSource = any , TContext = any > {
383
379
name : string ;
384
380
description : Maybe < string > ;
385
381
isTypeOf : Maybe < GraphQLIsTypeOfFn < TSource , TContext > > ;
386
382
extensions : Maybe < Readonly < Record < string , any > > > ;
387
383
astNode : Maybe < ObjectTypeDefinitionNode > ;
388
384
extensionASTNodes : Maybe < ReadonlyArray < ObjectTypeExtensionNode > > ;
389
385
390
- constructor (
391
- config : Readonly < GraphQLObjectTypeConfig < TSource , TContext , TArgs > > ,
392
- ) ;
386
+ constructor ( config : Readonly < GraphQLObjectTypeConfig < TSource , TContext > > ) ;
393
387
394
- getFields ( ) : GraphQLFieldMap < any , TContext , TArgs > ;
388
+ getFields ( ) : GraphQLFieldMap < any , TContext > ;
395
389
getInterfaces ( ) : Array < GraphQLInterfaceType > ;
396
390
397
391
toConfig ( ) : GraphQLObjectTypeConfig < any , any > & {
@@ -410,35 +404,23 @@ export function argsToArgsConfig(
410
404
args : ReadonlyArray < GraphQLArgument > ,
411
405
) : GraphQLFieldConfigArgumentMap ;
412
406
413
- // TS_SPECIFIC: TArgs
414
- export interface GraphQLObjectTypeConfig <
415
- TSource ,
416
- TContext ,
417
- TArgs = { [ key : string ] : any }
418
- > {
407
+ export interface GraphQLObjectTypeConfig < TSource , TContext > {
419
408
name : string ;
420
409
description ?: Maybe < string > ;
421
410
interfaces ?: Thunk < Maybe < Array < GraphQLInterfaceType > > > ;
422
- fields : Thunk < GraphQLFieldConfigMap < TSource , TContext , TArgs > > ;
411
+ fields : Thunk < GraphQLFieldConfigMap < TSource , TContext > > ;
423
412
isTypeOf ?: Maybe < GraphQLIsTypeOfFn < TSource , TContext > > ;
424
413
extensions ?: Maybe < Readonly < Record < string , any > > > ;
425
414
astNode ?: Maybe < ObjectTypeDefinitionNode > ;
426
415
extensionASTNodes ?: Maybe < ReadonlyArray < ObjectTypeExtensionNode > > ;
427
416
}
428
417
429
- // TS_SPECIFIC: TArgs
430
- export type GraphQLTypeResolver <
431
- TSource ,
432
- TContext ,
433
- TArgs = { [ key : string ] : any }
434
- > = (
418
+ export type GraphQLTypeResolver < TSource , TContext > = (
435
419
value : TSource ,
436
420
context : TContext ,
437
421
info : GraphQLResolveInfo ,
438
422
abstractType : GraphQLAbstractType ,
439
- ) => PromiseOrValue <
440
- Maybe < GraphQLObjectType < TSource , TContext , TArgs > | string >
441
- > ;
423
+ ) => PromiseOrValue < Maybe < GraphQLObjectType < TSource , TContext > | string > > ;
442
424
443
425
export type GraphQLIsTypeOfFn < TSource , TContext > = (
444
426
source : TSource ,
@@ -497,13 +479,8 @@ export interface GraphQLArgumentConfig {
497
479
astNode ?: Maybe < InputValueDefinitionNode > ;
498
480
}
499
481
500
- // TS_SPECIFIC: TArgs
501
- export type GraphQLFieldConfigMap <
502
- TSource ,
503
- TContext ,
504
- TArgs = { [ key : string ] : any }
505
- > = {
506
- [ key : string ] : GraphQLFieldConfig < TSource , TContext , TArgs > ;
482
+ export type GraphQLFieldConfigMap < TSource , TContext > = {
483
+ [ key : string ] : GraphQLFieldConfig < TSource , TContext > ;
507
484
} ;
508
485
509
486
export interface GraphQLField <
@@ -534,13 +511,8 @@ export interface GraphQLArgument {
534
511
535
512
export function isRequiredArgument ( arg : GraphQLArgument ) : boolean ;
536
513
537
- // TS_SPECIFIC: TArgs
538
- export type GraphQLFieldMap <
539
- TSource ,
540
- TContext ,
541
- TArgs = { [ key : string ] : any }
542
- > = {
543
- [ key : string ] : GraphQLField < TSource , TContext , TArgs > ;
514
+ export type GraphQLFieldMap < TSource , TContext > = {
515
+ [ key : string ] : GraphQLField < TSource , TContext > ;
544
516
} ;
545
517
546
518
/**
@@ -585,22 +557,17 @@ export class GraphQLInterfaceType {
585
557
inspect ( ) : string ;
586
558
}
587
559
588
- // TS_SPECIFIC: TArgs
589
- export interface GraphQLInterfaceTypeConfig <
590
- TSource ,
591
- TContext ,
592
- TArgs = { [ key : string ] : any }
593
- > {
560
+ export interface GraphQLInterfaceTypeConfig < TSource , TContext > {
594
561
name : string ;
595
562
description ?: Maybe < string > ;
596
563
interfaces ?: Thunk < Maybe < Array < GraphQLInterfaceType > > > ;
597
- fields : Thunk < GraphQLFieldConfigMap < TSource , TContext , TArgs > > ;
564
+ fields : Thunk < GraphQLFieldConfigMap < TSource , TContext > > ;
598
565
/**
599
566
* Optionally provide a custom type resolver function. If one is not provided,
600
567
* the default implementation will call `isTypeOf` on each implementing
601
568
* Object type.
602
569
*/
603
- resolveType ?: Maybe < GraphQLTypeResolver < TSource , TContext , TArgs > > ;
570
+ resolveType ?: Maybe < GraphQLTypeResolver < TSource , TContext > > ;
604
571
extensions ?: Maybe < Readonly < Record < string , any > > > ;
605
572
astNode ?: Maybe < InterfaceTypeDefinitionNode > ;
606
573
extensionASTNodes ?: Maybe < ReadonlyArray < InterfaceTypeExtensionNode > > ;
0 commit comments