Huakun Shen a3c05ef042
init
2025-01-18 22:03:55 -05:00

16 lines
474 B
TypeScript

export type Progress = { totalMB: number; totalDuration: number }
export interface API {
sequentialWriteTest: (
options: {
filePath: string
sizeInMB: number
rounds: number
bufferSizeMB: number
keepTheFile?: boolean
},
callback?: (progress: Progress) => void
) => Promise<Progress>
sequentialReadTest: (filePath: string, options: { deleteAfter: boolean }) => Promise<Progress>
createEmptyFile: (filePath: string, sizeInMB: number) => Promise<void>
}