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

10 lines
375 B
TypeScript
Raw Permalink Normal View History

2024-03-11 14:47:28 +03:00
/// <reference types="node" />
import { ServerResponse as S } from 'node:http';
type Res = Pick<S, 'setHeader' | 'end' | 'removeHeader'>;
/**
* Respond with stringified JSON object
* @param res Response
*/
export declare const json: <Response_1 extends Res = Res>(res: Response_1) => (body: any, ...args: any[]) => Response_1;
export {};
//# sourceMappingURL=json.d.ts.map