Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
type alias Endpoint
import { type Endpoint } from "https://deno.land/x/abstract_bot_api@85.0.0/src/taskBouncer.ts";
definition: { predicate: (task: TaskAddress) => boolean; bounce: false; handler: (
task: T,
res: http.ServerResponse,
address: TaskAddress,
) => void; } | { predicate: (address: TaskAddress) => boolean; bounce: true; handler: (payload: T) => Promise<void>; }