signalk-server
Version:
An implementation of a [Signal K](http://signalk.org) server for boats.
20 lines • 593 B
TypeScript
import { Response } from 'express';
interface ZipFile {
path: string;
name: string;
}
interface ZipOptions {
files: ZipFile[];
filename: string;
}
/**
* Send a zip file as a download response.
* Replacement for express-easy-zip using archiver directly.
*
* Note: `filename` is used verbatim in the Content-Disposition header, so the
* caller is responsible for including any desired extension. This function
* intentionally does not append `.zip`.
*/
export declare function sendZip(res: Response, options: ZipOptions): void;
export {};
//# sourceMappingURL=zip.d.ts.map