Skip to content

SmythOS Studio: Open-Source Visual AI Agent Builder and deployable runtime stack from SmythOS. Start with an intuitive drag-and-drop workspace, extend with custom code, and deploy your agents anywhere — local, cloud, or edge — with full governance and control.

467 B
Raw Blame
import { RequestHandler } from 'express';

type WithError<T> = T & { code?: number; message?: string; stack?: string };

export type ExpressHandlerOptional<Req, Res> = RequestHandler<Record<string, string | undefined>, Partial<WithError<Res>>, Partial<Req>>;
export type ExpressHandler<Req, Res> = RequestHandler<Record<string, string>, WithError<Res>, Req>;

export type ExpressHandlerWithParams<Params, Req, Res> = RequestHandler<Params, WithError<Res>, Req, any>;