hashion
Version:
25 lines (20 loc) • 512 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 Spark {
static pluginName: string;
static name: string;
name: string;
constructor();
computeHash(data: HashParameters, callback: HashCallback): Promise<{
abort: () => void;
}>;
}
export { }