Fixup machine-api

This commit is contained in:
49lf
2024-08-08 15:56:25 -04:00
parent c653fc541f
commit 7bacbf4f37
9 changed files with 100 additions and 32 deletions

3
interface.d.ts vendored
View File

@ -2,6 +2,7 @@ import fs from 'node:fs/promises'
import path from 'path'
import { dialog, shell } from 'electron'
import kittycad from '@kittycad/lib'
import { MachinesListing } from 'lib/machineManager'
export interface IElectronAPI {
open: typeof dialog.showOpenDialog
@ -34,6 +35,8 @@ export interface IElectronAPI {
}
}
kittycad
listMachines: () => Promise<MachinesListing>
getMachineApiIp: () => Promise<string | null>
}
declare global {