@@ -23,17 +23,23 @@ type FieldType<
2323 $SelectionSet ,
2424 $Node ,
2525> =
26- $Node extends GraphqlKit . Schema . Type . OutputObject ? $SelectionSet extends object
27- ? OutputObjectLike < $SelectionSet , $Schema , $Node >
28- : Ts . Err . StaticError < 'When $Node extends GraphqlKit.Schema.Type.OutputObject then $SelectionSet must extend object' , { location : 'FieldType' ; $Type : $Node ; $SelectionSet : $SelectionSet ; $Schema :$Schema } > :
29- $Node extends GraphqlKit . Schema . Type . Scalar . ScalarCodecless ? Codec . GetDecoded < GetCodecForCodecless < $Schema , $Node > > :
30- $Node extends GraphqlKit . Schema . Type . __typename ? $Node [ 'value' ] :
31- [ GraphqlKit . Schema . Type . ResolveLeafType < $Node > ] extends [ never ] ? $Node extends GraphqlKit . Schema . Type . Interface
32- ? Interface < $SelectionSet , $Schema , $Node >
33- : $Node extends GraphqlKit . Schema . Type . Union
34- ? Union < $SelectionSet , $Schema , $Node >
35- : Ts . Err . StaticError < `Unknown type`, { location : 'FieldType' ; $Type : $Node ; $SelectionSet : $SelectionSet ; $Schema :$Schema } > :
36- GraphqlKit . Schema . Type . ResolveLeafType < $Node >
26+ $Node extends GraphqlKit . Schema . Type . OutputObject
27+ ? (
28+ $SelectionSet extends object
29+ ? OutputObjectLike < $SelectionSet , $Schema , $Node >
30+ : Ts . Err . StaticError < 'When $Node extends GraphqlKit.Schema.Type.OutputObject then $SelectionSet must extend object' , { location : 'FieldType' ; $Type : $Node ; $SelectionSet : $SelectionSet ; $Schema :$Schema } >
31+ ) :
32+ $Node extends GraphqlKit . Schema . Type . Scalar . ScalarCodecless ? Codec . GetDecoded < GetCodecForCodecless < $Schema , $Node > > :
33+ $Node extends GraphqlKit . Schema . Type . __typename ? $Node [ 'value' ] :
34+ [ GraphqlKit . Schema . Type . ResolveLeafType < $Node > ] extends [ never ]
35+ ? (
36+ $Node extends GraphqlKit . Schema . Type . Interface
37+ ? Interface < $SelectionSet , $Schema , $Node >
38+ : $Node extends GraphqlKit . Schema . Type . Union
39+ ? Union < $SelectionSet , $Schema , $Node >
40+ : Ts . Err . StaticError < `Unknown type`, { location : 'FieldType' ; $Type : $Node ; $SelectionSet : $SelectionSet ; $Schema :$Schema } >
41+ )
42+ : GraphqlKit . Schema . Type . ResolveLeafType < $Node >
3743
3844// dprint-ignore
3945type GetCodecForCodecless <
0 commit comments