/
TON618OFF
/
FinalPWHTML
Обзор
Документация
Войти
/
TON618OFF
/
FinalPWHTML
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
node_modules/@tinyhttp/res/dist/format.d.ts
14 строк
592 B
TON618OFF
не ну это ваще
23 июн 2024, 00:30
23 июн 2024, 00:30
e27ae20
Код
Авторство
О чём код?
/// <reference types="node" /> import { IncomingMessage as Req, ServerResponse as Res } from 'node:http'; export type FormatProps = { default?: () => void; } & Record<string, any>; export type FormatError = Error & { status: number; statusCode: number; types: string[]; }; type next = (err?: FormatError) => void; export declare const formatResponse: <Request_1 extends Req = Req, Response_1 extends Res<Req> = Res<Req>, Next extends next = next>(req: Request_1, res: Response_1, next: Next) => (obj: FormatProps) => Response_1; export {}; //# sourceMappingURL=format.d.ts.map