File tree 4 files changed +14
-16
lines changed
4 files changed +14
-16
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,4 @@ export type {
15
15
16
16
export { subscribe , createSourceEventStream } from './subscribe' ;
17
17
18
- export type { SubscriptionArgs } from './subscribe' ;
19
-
20
18
export { getDirectiveValues } from './values' ;
Original file line number Diff line number Diff line change @@ -27,16 +27,6 @@ import {
27
27
} from './execute' ;
28
28
import { mapAsyncIterator } from './mapAsyncIterator' ;
29
29
30
- /**
31
- * @deprecated use ExecutionArgs instead. Will be removed in v17
32
- *
33
- * ExecutionArgs has been broadened to include all properties
34
- * within SubscriptionArgs. The SubscriptionArgs type is retained
35
- * for backwards compatibility.
36
- */
37
- // eslint-disable-next-line @typescript-eslint/no-empty-interface
38
- export interface SubscriptionArgs extends ExecutionArgs { }
39
-
40
30
/**
41
31
* Implements the "Subscribe" algorithm described in the GraphQL specification.
42
32
*
@@ -59,7 +49,7 @@ export interface SubscriptionArgs extends ExecutionArgs {}
59
49
* Accepts either an object with named arguments, or individual arguments.
60
50
*/
61
51
export async function subscribe (
62
- args : SubscriptionArgs ,
52
+ args : ExecutionArgs ,
63
53
) : Promise < AsyncGenerator < ExecutionResult , void , void > | ExecutionResult > {
64
54
const {
65
55
schema,
Original file line number Diff line number Diff line change @@ -320,9 +320,10 @@ export type {
320
320
ExecutionArgs ,
321
321
ExecutionResult ,
322
322
FormattedExecutionResult ,
323
- SubscriptionArgs ,
324
323
} from './execution/index' ;
325
324
325
+ export type { SubscriptionArgs } from './subscription/index' ;
326
+
326
327
/** Validate GraphQL documents. */
327
328
export {
328
329
validate ,
Original file line number Diff line number Diff line change 9
9
* will be dropped entirely.
10
10
*/
11
11
12
- export { subscribe , createSourceEventStream } from '../execution/subscribe' ;
12
+ import type { ExecutionArgs } from '../execution/execute' ;
13
+
14
+ /**
15
+ * @deprecated use ExecutionArgs instead. Will be removed in v17
16
+ *
17
+ * ExecutionArgs has been broadened to include all properties within SubscriptionArgs.
18
+ * The SubscriptionArgs type is retained for backwards compatibility.
19
+ */
20
+ // eslint-disable-next-line @typescript-eslint/no-empty-interface
21
+ export interface SubscriptionArgs extends ExecutionArgs { }
13
22
14
- export type { SubscriptionArgs } from '../execution/subscribe' ;
23
+ export { subscribe , createSourceEventStream } from '../execution/subscribe' ;
You can’t perform that action at this time.
0 commit comments