routup
Version:
Routup is a minimalistic http based routing framework.
6 lines (5 loc) • 363 B
TypeScript
import type { DispatchErrorEvent, DispatchEvent } from '../dispatcher';
export type HookErrorListener = (event: DispatchErrorEvent) => Promise<unknown> | unknown;
export type HookDefaultListener = (event: DispatchEvent) => Promise<unknown> | unknown;
export type HookListener = HookErrorListener | HookDefaultListener;
export type HookUnsubscribeFn = () => void;