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

12 lines
298 B
TypeScript

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;
}>;