From e2b829aff0a0a9fed1bcf659f48798f3213fae73 Mon Sep 17 00:00:00 2001 From: Laurin Quast Date: Mon, 12 Sep 2022 14:34:00 +0200 Subject: [PATCH] feat: allow defining symbol error extensions --- src/error/GraphQLError.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/error/GraphQLError.ts b/src/error/GraphQLError.ts index b88d27a56c..c7cde504dc 100644 --- a/src/error/GraphQLError.ts +++ b/src/error/GraphQLError.ts @@ -17,7 +17,7 @@ import type { Source } from '../language/source'; * an object which can contain all the values you need. */ export interface GraphQLErrorExtensions { - [attributeName: string]: unknown; + [attributeName: string | symbol]: unknown; } export interface GraphQLErrorOptions {