typedserver/ts_interfaces/requestmodifier.ts

12 lines
298 B
TypeScript
Raw Normal View History

2023-03-30 13:15:48 +00:00
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;
}>;