typedserver/ts/interfaces/requestmodifier.ts
2023-03-30 15:15:48 +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;
}>;