hashion
Version:
25 lines (20 loc) • 521 B
TypeScript
declare type HashCallback = (e: any, data: HashCallbackData) => void;
declare type HashCallbackData = {
progress: number;
hash?: string;
time?: number;
};
declare type HashParameters = {
file: File;
chunkSize: number;
};
export declare class SparkWorker {
static pluginName: string;
static name: string;
name: string;
constructor();
computeHash(data: HashParameters, callback: HashCallback): {
abort: () => void;
} | undefined;
}
export { }