MockHandler: ((req?: IncomingMessage) => Promise<{
body?: unknown;
code?: number;
}>)
Type declaration
-
- (req?: IncomingMessage): Promise<{
body?: unknown;
code?: number;
}>
-
Parameters
-
Optional
req: IncomingMessage
Returns Promise<{
body?: unknown;
code?: number;
}>