UNPKG

bknd

Version:

Lightweight Firebase/Supabase alternative built to run anywhere — incl. Next.js, React Router, Astro, Cloudflare, Bun, Node, AWS Lambda & more.

15 lines (14 loc) 881 B
import { serve as honoServe } from "@hono/node-server"; import { type RuntimeBkndConfig, type RuntimeOptions } from "bknd/adapter"; type NodeEnv = NodeJS.ProcessEnv; export type NodeBkndConfig<Env = NodeEnv> = RuntimeBkndConfig<Env> & { port?: number; hostname?: string; listener?: Parameters<typeof honoServe>[1]; /** @deprecated */ relativeDistPath?: string; }; export declare function createApp<Env = NodeEnv>({ distPath, relativeDistPath, ...config }?: NodeBkndConfig<Env>, args?: Env, opts?: RuntimeOptions): Promise<import("../..").App>; export declare function createHandler<Env = NodeEnv>(config?: NodeBkndConfig<Env>, args?: Env, opts?: RuntimeOptions): (req: Request) => Promise<Response>; export declare function serve<Env = NodeEnv>({ port, hostname, listener, ...config }?: NodeBkndConfig<Env>, args?: Env, opts?: RuntimeOptions): void; export {};