@m1212e/rumble 0.17.3 → 0.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/out/client.cjs +5 -2
- package/out/client.cjs.map +1 -1
- package/out/client.d.cts.map +1 -1
- package/out/client.d.mts.map +1 -1
- package/out/client.mjs +4 -1
- package/out/client.mjs.map +1 -1
- package/out/index.cjs +4 -4
- package/out/index.cjs.map +1 -1
- package/out/index.d.cts +4 -3
- package/out/index.d.cts.map +1 -1
- package/out/index.d.mts +5 -4
- package/out/index.d.mts.map +1 -1
- package/out/index.mjs +4 -4
- package/out/index.mjs.map +1 -1
- package/package.json +1 -1
package/out/index.d.mts
CHANGED
|
@@ -4,7 +4,6 @@ import { Tracer } from "@opentelemetry/api";
|
|
|
4
4
|
import { TracingWrapperOptions } from "@pothos/tracing-opentelemetry";
|
|
5
5
|
import * as _$graphql_yoga0 from "graphql-yoga";
|
|
6
6
|
import { YogaServerOptions, createPubSub } from "graphql-yoga";
|
|
7
|
-
import { useSofa } from "sofa-api";
|
|
8
7
|
import * as _$drizzle_orm0 from "drizzle-orm";
|
|
9
8
|
import * as _$drizzle_orm_pg_core0 from "drizzle-orm/pg-core";
|
|
10
9
|
import { PgAsyncDatabase } from "drizzle-orm/pg-core";
|
|
@@ -16,6 +15,8 @@ import * as _$_pothos_plugin_drizzle0 from "@pothos/plugin-drizzle";
|
|
|
16
15
|
import { IncomingMessage, RequestListener, ServerResponse } from "node:http";
|
|
17
16
|
import { Http2ServerRequest, Http2ServerResponse } from "node:http2";
|
|
18
17
|
import { Socket } from "node:net";
|
|
18
|
+
import { ServerOptions } from "graphql-ws";
|
|
19
|
+
import { useSofa } from "sofa-api";
|
|
19
20
|
|
|
20
21
|
//#region lib/helpers/asserts.d.ts
|
|
21
22
|
/**
|
|
@@ -4395,9 +4396,9 @@ declare const rumble: <UserContext extends Record<string, any>, DB extends Drizz
|
|
|
4395
4396
|
* ```
|
|
4396
4397
|
* https://the-guild.dev/graphql/sofa-api/docs#usage
|
|
4397
4398
|
*/
|
|
4398
|
-
createSofa: (args: Omit<Parameters<typeof useSofa>[0], "schema" | "context">) => Router<any, {}, {
|
|
4399
|
+
createSofa: (args: Omit<Parameters<typeof useSofa>[0], "schema" | "context">) => Promise<Router<any, {}, {
|
|
4399
4400
|
[TKey: string]: never;
|
|
4400
|
-
}
|
|
4401
|
+
}>>;
|
|
4401
4402
|
/**
|
|
4402
4403
|
* Creates a WebSocket server handler for GraphQL subscriptions.
|
|
4403
4404
|
* Pass the ws implementation function as the first argument and rumble will
|
|
@@ -4417,7 +4418,7 @@ declare const rumble: <UserContext extends Record<string, any>, DB extends Drizz
|
|
|
4417
4418
|
* Bun.serve({ websocket: createWs(makeHandler, { ... }), ... });
|
|
4418
4419
|
* ```
|
|
4419
4420
|
*/
|
|
4420
|
-
createWs: <
|
|
4421
|
+
createWs: <Options extends ServerOptions<any, any>, Rest extends unknown[], Return>(implementation: (options: Options, ...rest: Rest) => Return, args: Omit<Options, "schema" | "context">, ...rest: Rest) => Return;
|
|
4421
4422
|
/**
|
|
4422
4423
|
* A function for creating default objects for your schema
|
|
4423
4424
|
*/
|