typedserver/ts/interfaces/responsemodifier.ts

12 lines
339 B
TypeScript
Raw Normal View History

2023-03-30 13:15:48 +00:00
export type TResponseModifier = <T>(responseArg: {
headers: { [header: string]: number | string | string[] | undefined };
path: string;
2024-01-07 13:50:14 +00:00
responseContent: Buffer;
2023-03-30 13:15:48 +00:00
travelData?: T;
}) => Promise<{
headers: { [header: string]: number | string | string[] | undefined };
path: string;
2024-01-07 13:50:14 +00:00
responseContent: Buffer;
2023-03-30 13:15:48 +00:00
travelData?: T;
}>;