UNPKG

inngest

Version:

Official SDK for Inngest.com. Inngest is the reliability layer for modern applications. Inngest combines durable execution, events, and queues into a zero-infra platform with built-in observability.

32 lines (30 loc) 962 B
import { SupportedFrameworkName } from "../types.js"; import { ServeHandlerOptions } from "../components/InngestCommHandler.js"; //#region src/deno/fresh.d.ts /** * The name of the framework, used to identify the framework in Inngest * dashboards and during testing. */ declare const frameworkName: SupportedFrameworkName; /** * With Deno's Fresh framework, serve and register any declared functions with * Inngest, making them available to be triggered by events. * * @example * ```ts * import { serve } from "https://esm.sh/inngest/deno/fresh"; * import { inngest } from "./src/inngest/client.ts"; * import fnA from "./src/inngest/fnA"; // Your own function * * export const handler = serve({ * client: inngest, * functions: [fnA], * }); * ``` * * @public */ declare const serve: (options: ServeHandlerOptions) => ((req: Request) => Promise<Response>); //#endregion export { frameworkName, serve }; //# sourceMappingURL=fresh.d.ts.map