feat: init
This commit is contained in:
21
node_modules/srvx/dist/adapters/deno.d.mts
generated
vendored
Normal file
21
node_modules/srvx/dist/adapters/deno.d.mts
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
import { DenoFetchHandler, Server, ServerOptions } from "../types.mjs";
|
||||
import { t as FastURL } from "../_chunks/_url.mjs";
|
||||
|
||||
//#region src/adapters/deno.d.ts
|
||||
declare const FastResponse: typeof globalThis.Response;
|
||||
declare function serve(options: ServerOptions): DenoServer;
|
||||
declare class DenoServer implements Server<DenoFetchHandler> {
|
||||
#private;
|
||||
readonly runtime = "deno";
|
||||
readonly options: Server["options"];
|
||||
readonly deno: Server["deno"];
|
||||
readonly serveOptions: Deno.ServeTcpOptions | (Deno.ServeTcpOptions & Deno.TlsCertifiedKeyPem) | undefined;
|
||||
readonly fetch: DenoFetchHandler;
|
||||
constructor(options: ServerOptions);
|
||||
serve(): Promise<this>;
|
||||
get url(): string | undefined;
|
||||
ready(): Promise<Server>;
|
||||
close(): Promise<void>;
|
||||
}
|
||||
//#endregion
|
||||
export { FastResponse, FastURL, serve };
|
||||
Reference in New Issue
Block a user