Skip to content

Commit 5e062ea

Browse files
TS: Drop template argument from GraphQLFormattedError (#3131)
1 parent e428304 commit 5e062ea

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/error/formatError.d.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ export function formatError(error: GraphQLError): GraphQLFormattedError;
88
/**
99
* @see https://github.com/graphql/graphql-spec/blob/master/spec/Section%207%20--%20Response.md#errors
1010
*/
11-
export interface GraphQLFormattedError<
12-
TExtensions extends Record<string, unknown> = Record<string, unknown>,
13-
> {
11+
export interface GraphQLFormattedError {
1412
/**
1513
* A short, human-readable summary of the problem that **SHOULD NOT** change
1614
* from occurrence to occurrence of the problem, except for purposes of
@@ -33,5 +31,5 @@ export interface GraphQLFormattedError<
3331
* Reserved for implementors to extend the protocol however they see fit,
3432
* and hence there are no additional restrictions on its contents.
3533
*/
36-
readonly extensions?: TExtensions;
34+
readonly extensions?: { [key: string]: unknown };
3735
}

0 commit comments

Comments
 (0)