UNPKG

893 BTypeScriptView Raw
1/**
2 * NOTE: the `graphql/subscription` module has been deprecated with its
3 * exported functions integrated into the `graphql/execution` module, to
4 * better conform with the terminology of the GraphQL specification.
5 *
6 * For backwards compatibility, the `graphql/subscription` module
7 * currently re-exports the moved functions from the `graphql/execution`
8 * module. In the next major release, the `graphql/subscription` module
9 * will be dropped entirely.
10 */
11import type { ExecutionArgs } from '../execution/execute';
12/**
13 * @deprecated use ExecutionArgs instead. Will be removed in v17
14 *
15 * ExecutionArgs has been broadened to include all properties within SubscriptionArgs.
16 * The SubscriptionArgs type is retained for backwards compatibility.
17 */
18export interface SubscriptionArgs extends ExecutionArgs {}
19export { subscribe, createSourceEventStream } from '../execution/subscribe';