@aklinker1/zeta 2.1.3 → 2.2.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/dist/client.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { t as ErrorResponse } from "./schema-IKHh0I39.mjs";
2
- import { _ as GetAppRoutes, d as BaseRoutes, i as App, o as ApplyAppDataPrefix, s as ApplyAppPrefix, v as GetRequestParamsInput, w as GetResponseOutput } from "./types-D9oRVe1E.mjs";
1
+ import { t as ErrorResponse } from "./schema-DKqL09oQ.mjs";
2
+ import { T as GetResponseOutput, a as App, c as ApplyAppPrefix, f as BaseRoutes, s as ApplyAppDataPrefix, v as GetAppRoutes, y as GetRequestParamsInput } from "./types-BvjPE9EM.mjs";
3
3
 
4
4
  //#region src/client.d.ts
5
5
  /**
package/dist/client.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { n as smartSerialize, t as smartDeserialize } from "./serialization-C8e7ECQ2.mjs";
1
+ import { n as smartSerialize, t as smartDeserialize } from "./serialization-0dai2wUm.mjs";
2
2
  //#region src/client.ts
3
3
  /**
4
4
  * Creates a type-safe client based on the server-side app. This is only useful
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { i as NoResponse, l as HttpStatus, s as ZetaSchema, t as ErrorResponse, u as getHttpStatusName } from "./schema-IKHh0I39.mjs";
2
- import { $ as SchemaAdapter, at as Transport, i as App, l as BasePath, u as BasePrefix } from "./types-D9oRVe1E.mjs";
1
+ import { i as NoResponse, l as HttpStatus, s as ZetaSchema, t as ErrorResponse, u as getHttpStatusName } from "./schema-DKqL09oQ.mjs";
2
+ import { a as App, d as BasePrefix, i as AnyTransport, st as Transport, tt as SchemaAdapter, u as BasePath } from "./types-BvjPE9EM.mjs";
3
3
  import { OpenAPI, OpenAPIV3_1 } from "openapi-types";
4
4
 
5
5
  //#region src/app.d.ts
@@ -25,21 +25,22 @@ import { OpenAPI, OpenAPIV3_1 } from "openapi-types";
25
25
  * // Or serve the app yourself
26
26
  * const fetch = app.build();
27
27
  * Bun.serve({ fetch, ... });
28
- * Deno.serve({ fetch, ... });
28
+ * Deno.serve({ ... }, fetch);
29
29
  * ```
30
30
  *
31
31
  * @param options Configure application behavior.
32
32
  */
33
- declare function createApp<TPrefix extends BasePrefix = "">(options?: CreateAppOptions<TPrefix>): App<{
33
+ declare function createApp<TPrefix extends BasePrefix = "", TTransport extends AnyTransport = Transport>(options?: CreateAppOptions<TPrefix, TTransport>): App<{
34
34
  ctx: {};
35
35
  exported: false;
36
36
  prefix: TPrefix;
37
37
  routes: {};
38
+ transport: TTransport;
38
39
  }>;
39
40
  /**
40
41
  * Configure how the app is created.
41
42
  */
42
- type CreateAppOptions<TPrefix extends BasePrefix = ""> = {
43
+ type CreateAppOptions<TPrefix extends BasePrefix = "", TTransport extends AnyTransport = Transport> = {
43
44
  /**
44
45
  * The origin to use when constructing URLs.
45
46
  * @default "http://localhost"
@@ -81,7 +82,7 @@ type CreateAppOptions<TPrefix extends BasePrefix = ""> = {
81
82
  * });
82
83
  * ```
83
84
  */
84
- transport?: Transport;
85
+ transport?: TTransport;
85
86
  /**
86
87
  * Where the OpenAPI JSON docs is hosted.
87
88
  * @default "/openapi.json"