11 lines
421 B
TypeScript
11 lines
421 B
TypeScript
|
/// <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 Node’s `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
|