aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornetop://ウィビ <paul@webb.page>2026-05-03 12:42:37 -0700
committernetop://ウィビ <paul@webb.page>2026-05-03 12:42:37 -0700
commitbbcbb02ef64d094f0f13de22ae135eeba1ff4c5d (patch)
tree926717e58d94e001b8ac4784bdc4c1f5a9db0633
parent52ee736bd2ac407952863c8e8397770bf1495a45 (diff)
downloadgq-primary.tar.gz
gq-primary.zip
0.6.1 - adds explicit return type to GraphQLWSHEADprimary
-rw-r--r--deno.json2
-rw-r--r--source/ws.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/deno.json b/deno.json
index dc8e5bf..bddf2d3 100644
--- a/deno.json
+++ b/deno.json
@@ -12,5 +12,5 @@
},
"license": "MIT",
"name": "@eol/gq",
- "version": "0.6.0"
+ "version": "0.6.1"
}
diff --git a/source/ws.ts b/source/ws.ts
index fdd9fb1..cbf70ea 100644
--- a/source/ws.ts
+++ b/source/ws.ts
@@ -53,7 +53,7 @@ export type WSOptions<Ctx = unknown> = {
* Deno.serve(GraphQLHTTP({ schema, subscriptions }));
* ```
*/
-export function GraphQLWS<Ctx = unknown>(options: WSOptions<Ctx>) {
+export function GraphQLWS<Ctx = unknown>(options: WSOptions<Ctx>): (request: Request) => Response {
const server = makeServer({
...options,
context: options.context as ServerOptions["context"],