@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) • 381 B
TypeScript
export type TResponseModifier = <T>(responseArg: {
headers: {
[header: string]: number | string | string[] | undefined;
};
path: string;
responseContent: Buffer;
travelData?: T;
}) => Promise<{
headers: {
[header: string]: number | string | string[] | undefined;
};
path: string;
responseContent: Buffer;
travelData?: T;
}>;