typedserver/ts/interfaces/responsemodifier.ts
2023-03-30 15:15:48 +02:00

12 lines
339 B
TypeScript

export type TResponseModifier = <T>(responseArg: {
headers: { [header: string]: number | string | string[] | undefined };
path: string;
responseContent: string;
travelData?: T;
}) => Promise<{
headers: { [header: string]: number | string | string[] | undefined };
path: string;
responseContent: string;
travelData?: T;
}>;