@supacloud/elysia 0.38.1 → 0.38.2
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/bun-aot.d.ts +18 -0
- package/dist/bun-aot.js +3252 -0
- package/dist/fixtures/webhook-generated/application.d.ts +29 -1
- package/dist/index.d.ts +16 -4
- package/dist/index.js +87 -49
- package/dist/testing.d.ts +11 -0
- package/package.json +9 -4
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Elysia } from "elysia";
|
|
2
|
+
import type { AnyElysia } from "elysia";
|
|
3
|
+
import { type ApplicationOptions } from "./index";
|
|
4
|
+
export interface BunAotApplication {
|
|
5
|
+
readonly app: AnyElysia;
|
|
6
|
+
readonly fetch: (request: Request) => Response | Promise<Response>;
|
|
7
|
+
readonly start: (options: BunAotServeOptions) => BunAotServer;
|
|
8
|
+
readonly destroy: () => Promise<void>;
|
|
9
|
+
}
|
|
10
|
+
export interface BunAotServeOptions {
|
|
11
|
+
hostname?: string;
|
|
12
|
+
port: number;
|
|
13
|
+
}
|
|
14
|
+
export interface BunAotServer {
|
|
15
|
+
readonly url: string;
|
|
16
|
+
stop(closeActiveConnections?: boolean): Promise<void>;
|
|
17
|
+
}
|
|
18
|
+
export declare function createBunAotApplication<const Http extends AnyElysia = Elysia, RequestContext = unknown>(options: ApplicationOptions<Http, RequestContext>): BunAotApplication;
|