diff --git a/src/error/formatError.d.ts b/src/error/formatError.d.ts index 8d9013133b..e473694d3b 100644 --- a/src/error/formatError.d.ts +++ b/src/error/formatError.d.ts @@ -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 = Record, -> { +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 @@ -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 }; }