@kaynewang/simple-saver
Version:
This package can help you download multi-file easily.
22 lines (21 loc) • 450 B
TypeScript
import { IFile, IOpts } from './types';
declare class SimpleSaver {
private useFileSystem;
private batchSave;
/**
* Save multi-file.
*
* @param filename the zip name.
* @param files
*/
saveFilesAs(filename: string, files: IFile[]): Promise<any>;
/**
* Save file.
*
* @param file
*/
saveFileAs(file: IFile): Promise<void>;
private appendDependencyScripts;
constructor(opt?: IOpts);
}
export { SimpleSaver };