UNPKG

bknd

Version:

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

27 lines (26 loc) 1.04 kB
import { type Static } from "../../core/utils"; import { Module } from "../../modules/Module"; import * as tbbox from "@sinclair/typebox"; export declare const serverConfigSchema: tbbox.TObject<{ cors: tbbox.TObject<{ origin: tbbox.TString; allow_methods: tbbox.TArray<tbbox.TUnsafe<string>>; allow_headers: tbbox.TArray<tbbox.TString>; }>; }>; export type AppServerConfig = Static<typeof serverConfigSchema>; export declare class AppServer extends Module<typeof serverConfigSchema> { getRestrictedPaths(): never[]; get client(): import("hono").Hono<import("../Controller").ServerEnv, import("hono/types").BlankSchema, "/">; getSchema(): tbbox.TObject<{ cors: tbbox.TObject<{ origin: tbbox.TString; allow_methods: tbbox.TArray<tbbox.TUnsafe<string>>; allow_headers: tbbox.TArray<tbbox.TString>; }>; }>; build(): Promise<void>; toJSON(secrets?: boolean): (ReturnType<this["getSchema"]> & { params: []; })["static"]; }