added doga

This commit is contained in:
szabomarton
2025-02-25 09:55:29 +01:00
parent 5174ab4cc4
commit 13254e5623
1149 changed files with 80161 additions and 0 deletions

10
25_02_24/node_modules/@tinyhttp/res/dist/download.d.ts generated vendored Normal file
View File

@@ -0,0 +1,10 @@
import type { IncomingMessage as Req, ServerResponse as Res } from 'node:http';
import type { SendFileOptions } from '@tinyhttp/send';
export type DownloadOptions = SendFileOptions & Partial<{
headers: Record<string, string>;
}>;
type Callback = (err?: any) => void;
export declare const download: <Request extends Req = Req, Response extends Res = Res<Req>>(req: Request, res: Response) => (path: string, filename?: string | Callback, options?: DownloadOptions | Callback, cb?: Callback) => Response;
export declare const attachment: <Response extends Res>(res: Response) => (filename?: string) => Response;
export {};
//# sourceMappingURL=download.d.ts.map