File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -112,16 +112,22 @@ export interface ExecutionContext {
112
112
* - `data` is the result of a successful execution of the query.
113
113
* - `extensions` is reserved for adding non-standard properties.
114
114
*/
115
- export interface ExecutionResult {
115
+ export interface ExecutionResult <
116
+ TData = ObjMap < unknown > ,
117
+ TExtensions = ObjMap < unknown > ,
118
+ > {
116
119
errors ?: ReadonlyArray < GraphQLError > ;
117
- data ?: ObjMap < unknown > | null ;
118
- extensions ?: ObjMap < unknown > ;
120
+ data ?: TData | null ;
121
+ extensions ?: TExtensions ;
119
122
}
120
123
121
- export interface FormattedExecutionResult {
124
+ export interface FormattedExecutionResult <
125
+ TData = ObjMap < unknown > ,
126
+ TExtensions = ObjMap < unknown > ,
127
+ > {
122
128
errors ?: ReadonlyArray < GraphQLFormattedError > ;
123
- data ?: ObjMap < unknown > | null ;
124
- extensions ?: ObjMap < unknown > ;
129
+ data ?: TData | null ;
130
+ extensions ?: TExtensions ;
125
131
}
126
132
127
133
export interface ExecutionArgs {
You can’t perform that action at this time.
0 commit comments