Skip to content

Commit 29c1bff

Browse files
authored
feat: allow defining symbol error extensions (#3730)
1 parent c985c27 commit 29c1bff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/error/GraphQLError.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import type { Source } from '../language/source';
1717
* an object which can contain all the values you need.
1818
*/
1919
export interface GraphQLErrorExtensions {
20-
[attributeName: string]: unknown;
20+
[attributeName: string | symbol]: unknown;
2121
}
2222

2323
export interface GraphQLErrorOptions {

0 commit comments

Comments
 (0)