UNPKG

@jingoz/file-slicer

Version:

@jingoz/file-slicer 是一个 npm 包,提供了文件根据自定义大小分片并计算 hash 的功能。

14 lines (13 loc) 469 B
import { IFileWithHash } from './types'; export declare class FileWithHash implements IFileWithHash { protected _file?: File | undefined; private _fileHash; get fullHash(): string; get fileSize(): number; get fileName(): string; get fileType(): string; get filePath(): string; constructor(_file?: File | undefined); protected _arrayBufferToHash(origin: ArrayBuffer): Promise<string | undefined>; calcFileHash(): Promise<void>; }