UNPKG

rjweb-server

Version:

Easy and Robust Way to create a Web Server with Many Easy-to-use Features in NodeJS

5 lines (4 loc) 303 B
import { RequestContext } from ".."; import { GlobalContext, LocalContext } from "../types/context"; import { EventHandlerMap } from "../types/event"; export default function handleEvent(event: keyof EventHandlerMap<any, any>, ctr: RequestContext, ctx: LocalContext, ctg: GlobalContext): Promise<void>;