This commit is contained in:
49lf
2024-10-02 12:36:24 -04:00
parent 3035ad16fc
commit dcbfccc621
7 changed files with 120 additions and 2 deletions

4
interface.d.ts vendored
View File

@ -1,4 +1,5 @@
import fs from 'node:fs/promises'
import fsSync from 'node:fs'
import path from 'path'
import { dialog, shell } from 'electron'
import { MachinesListing } from 'lib/machineManager'
@ -17,6 +18,9 @@ export interface IElectronAPI {
platform: typeof process.env.platform
arch: typeof process.env.arch
version: typeof process.env.version
watchFileOn: (path: string, callback: (eventType: string, path: string) => void)=> void
watchFileOff: (path: string) => void
watchFileObliterate: () => void
readFile: (path: string) => ReturnType<fs.readFile>
writeFile: (
path: string,