@@ -119,20 +119,26 @@ function mapSourceToResponse(
119
119
* or otherwise separating these two steps. For more on this, see the
120
120
* "Supporting Subscriptions at Scale" information in the GraphQL specification.
121
121
*/
122
+ export function createSourceEventStream (
123
+ args : ExecutionArgs ,
124
+ ) : PromiseOrValue < AsyncIterable < unknown > | ExecutionResult > ;
125
+ /** @deprecated will be removed in next major version in favor of named arguments */
126
+ export function createSourceEventStream (
127
+ schema : GraphQLSchema ,
128
+ document : DocumentNode ,
129
+ rootValue ?: unknown ,
130
+ contextValue ?: unknown ,
131
+ variableValues ?: Maybe < { readonly [ variable : string ] : unknown } > ,
132
+ operationName ?: Maybe < string > ,
133
+ subscribeFieldResolver ?: Maybe < GraphQLFieldResolver < any , any > > ,
134
+ ) : PromiseOrValue < AsyncIterable < unknown > | ExecutionResult > ;
122
135
export function createSourceEventStream (
123
136
argsOrSchema : ExecutionArgs | GraphQLSchema ,
124
- /** Note: document argument is required if positional arguments are used */
125
- /** @deprecated will be removed in next major version in favor of named arguments */
126
137
document ?: DocumentNode ,
127
- /** @deprecated will be removed in next major version in favor of named arguments */
128
138
rootValue ?: unknown ,
129
- /** @deprecated will be removed in next major version in favor of named arguments */
130
139
contextValue ?: unknown ,
131
- /** @deprecated will be removed in next major version in favor of named arguments */
132
140
variableValues ?: Maybe < { readonly [ variable : string ] : unknown } > ,
133
- /** @deprecated will be removed in next major version in favor of named arguments */
134
141
operationName ?: Maybe < string > ,
135
- /** @deprecated will be removed in next major version in favor of named arguments */
136
142
subscribeFieldResolver ?: Maybe < GraphQLFieldResolver < any , any > > ,
137
143
) : PromiseOrValue < AsyncIterable < unknown > | ExecutionResult > {
138
144
if ( isSchema ( argsOrSchema ) ) {
0 commit comments