Skip to content

Commit 6b180e8

Browse files
pleunvenisdenjo
andauthored
fix(common): Fix the FormattedExecutionResult.errors type (#621)
Co-authored-by: Denis Badurina <[email protected]>
1 parent e1ec851 commit 6b180e8

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/eleven-bears-warn.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'graphql-ws': patch
3+
---
4+
5+
FormattedExecutionResult errors field returns GraphQLFormattedError

src/common.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ export interface FormattedExecutionResult<
163163
Data = Record<string, unknown>,
164164
Extensions = Record<string, unknown>,
165165
> {
166-
errors?: ReadonlyArray<FormattedExecutionResult> | undefined;
166+
errors?: ReadonlyArray<GraphQLFormattedError> | undefined;
167167
data?: Data | null | undefined;
168168
hasNext?: boolean | undefined;
169169
extensions?: Extensions | undefined;

0 commit comments

Comments
 (0)