diff --git a/src/lib/commands.ts b/src/lib/commands.ts index 0ce5e229..a41957e3 100644 --- a/src/lib/commands.ts +++ b/src/lib/commands.ts @@ -3,9 +3,9 @@ import { Command, DiskItem, KillProcessOpts, KillProcessResult, ScanOpts } from // TODO: Fix types export const commands = { - killProcess: (opts: KillProcessOpts): Promise => invoke(Command.KillProcess, opts), + killProcess: (opts: KillProcessOpts): Promise => invoke(Command.KillProcess, opts as any), showInFolder: (path: string): Promise => invoke(Command.ShowInFolder, { path }), - turboScan: (path: ScanOpts): Promise => invoke(Command.DiskTurboScan, path), - scan: (path: ScanOpts): Promise => invoke(Command.DiskScan, path), - disk_analysis_flattened: (path: ScanOpts): Promise => invoke(Command.DiskAnalysisFlattened, path), + turboScan: (path: ScanOpts): Promise => invoke(Command.DiskTurboScan, path as any), + scan: (path: ScanOpts): Promise => invoke(Command.DiskScan, path as any), + disk_analysis_flattened: (path: ScanOpts): Promise => invoke(Command.DiskAnalysisFlattened, path as any), };