From 280f1873f1d71927abc7448f88e2f9d85590b101 Mon Sep 17 00:00:00 2001 From: Hagai Cohen Date: Sat, 2 Sep 2017 10:11:14 +0300 Subject: [PATCH 1/2] update subscribe signature --- types/graphql/subscription/subscribe.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/graphql/subscription/subscribe.d.ts b/types/graphql/subscription/subscribe.d.ts index b7b40076bf..30efc010ec 100644 --- a/types/graphql/subscription/subscribe.d.ts +++ b/types/graphql/subscription/subscribe.d.ts @@ -14,7 +14,7 @@ export function subscribe( operationName?: string, fieldResolver?: GraphQLFieldResolver, subscribeFieldResolver?: GraphQLFieldResolver -): AsyncIterator; +): Promise | ExecutionResult>; export function createSourceEventStream( schema: GraphQLSchema, @@ -26,4 +26,4 @@ export function createSourceEventStream( }, operationName?: string, fieldResolver?: GraphQLFieldResolver -): AsyncIterable; +): Promise>; From 20634d7ac57c2bc3adfdf8336f4229c92aed9daf Mon Sep 17 00:00:00 2001 From: Hagai Cohen Date: Sat, 2 Sep 2017 10:15:53 +0300 Subject: [PATCH 2/2] update contributers --- types/graphql/index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/types/graphql/index.d.ts b/types/graphql/index.d.ts index e85060bab5..905dcbdd7b 100644 --- a/types/graphql/index.d.ts +++ b/types/graphql/index.d.ts @@ -7,6 +7,7 @@ // Kepennar // Mikhail Novikov // Ivan Goncharov +// Hagai Cohen // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3