ios-dev/comments/Home/node_modules/@tinyhttp/send/dist/status.d.ts

11 lines
421 B
TypeScript
Raw Normal View History

2024-03-11 14:47:28 +03:00
/// <reference types="node" />
import type { ServerResponse } from 'node:http';
type Res = Pick<ServerResponse, 'statusCode'>;
/**
* Sets the HTTP status for the response. It is a chainable alias of Nodes `response.statusCode`.
*
* @param res Response
*/
export declare const status: <Response_1 extends Res = Res>(res: Response_1) => (status: number) => Response_1;
export {};
//# sourceMappingURL=status.d.ts.map