export type NestExecutionContext = { switchToHttp(): { getRequest(): Record; getResponse(): Record; getNext(): (err?: unknown) => void; }; }; export type NestNextFunction = (err?: unknown) => void; export type NestResponse = { status: (code: number) => any; send: (data: string | object) => void; };