UNPKG

@api.global/typedserver

Version:

A TypeScript-based project for easy serving of static files with support for live reloading, compression, and typed requests.

16 lines (15 loc) 340 B
export type TRequestModifier = <T>(responseArg: { headers: { [header: string]: string | string[] | undefined; }; path: string; body: string; travelData?: T; }) => Promise<{ headers: { [header: string]: string | string[] | undefined; }; path: string; body: string; travelData?: T; }>;