Skip to content

Commit

Permalink
TS: Drop template argument from GraphQLFormattedError (#3131)
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanGoncharov committed May 24, 2021
1 parent e428304 commit 5e062ea
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/error/formatError.d.ts
Expand Up @@ -8,9 +8,7 @@ export function formatError(error: GraphQLError): GraphQLFormattedError;
/**
* @see https://github.com/graphql/graphql-spec/blob/master/spec/Section%207%20--%20Response.md#errors
*/
export interface GraphQLFormattedError<
TExtensions extends Record<string, unknown> = Record<string, unknown>,
> {
export interface GraphQLFormattedError {
/**
* A short, human-readable summary of the problem that **SHOULD NOT** change
* from occurrence to occurrence of the problem, except for purposes of
Expand All @@ -33,5 +31,5 @@ export interface GraphQLFormattedError<
* Reserved for implementors to extend the protocol however they see fit,
* and hence there are no additional restrictions on its contents.
*/
readonly extensions?: TExtensions;
readonly extensions?: { [key: string]: unknown };
}

0 comments on commit 5e062ea

Please sign in to comment.