Skip to content

Commit

Permalink
Extract TS specific changes from *.d.ts files
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanGoncharov committed May 25, 2021
1 parent 2917840 commit f1f26dc
Show file tree
Hide file tree
Showing 128 changed files with 255 additions and 5,681 deletions.
86 changes: 0 additions & 86 deletions src/error/GraphQLError.d.ts

This file was deleted.

37 changes: 0 additions & 37 deletions src/error/formatError.d.ts

This file was deleted.

5 changes: 0 additions & 5 deletions src/error/index.d.ts

This file was deleted.

13 changes: 0 additions & 13 deletions src/error/locatedError.d.ts

This file was deleted.

11 changes: 0 additions & 11 deletions src/error/syntaxError.d.ts

This file was deleted.

205 changes: 0 additions & 205 deletions src/execution/execute.d.ts

This file was deleted.

18 changes: 12 additions & 6 deletions src/execution/execute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,16 +112,22 @@ export interface ExecutionContext {
* - `data` is the result of a successful execution of the query.
* - `extensions` is reserved for adding non-standard properties.
*/
export interface ExecutionResult {
export interface ExecutionResult<
TData = ObjMap<unknown>,
TExtensions = ObjMap<unknown>,
> {
errors?: ReadonlyArray<GraphQLError>;
data?: ObjMap<unknown> | null;
extensions?: ObjMap<unknown>;
data?: TData | null;
extensions?: TExtensions;
}

export interface FormattedExecutionResult {
export interface FormattedExecutionResult<
TData = ObjMap<unknown>,
TExtensions = ObjMap<unknown>,
> {
errors?: ReadonlyArray<GraphQLFormattedError>;
data?: ObjMap<unknown> | null;
extensions?: ObjMap<unknown>;
data?: TData | null;
extensions?: TExtensions;
}

export interface ExecutionArgs {
Expand Down

0 comments on commit f1f26dc

Please sign in to comment.