14 lines
No EOL
519 B
TypeScript
14 lines
No EOL
519 B
TypeScript
/**
|
|
* Represents a Node.js HTTP Response, including the minimal set of use properties and methods.
|
|
* Compatible with Restify, Express, and Node.js core http.
|
|
*/
|
|
import * as z from 'zod';
|
|
export interface Response {
|
|
socket: unknown;
|
|
end(...args: unknown[]): unknown;
|
|
header(name: string, value: unknown): unknown;
|
|
send(...args: unknown[]): unknown;
|
|
status(code: number): unknown;
|
|
}
|
|
export declare const ResponseT: z.ZodType<Response, z.ZodTypeDef, Response>;
|
|
//# sourceMappingURL=response.d.ts.map
|