typedserver/ts_interfaces/responsemodifier.ts
2024-05-11 12:51:20 +02:00

12 lines
339 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;
}>;