mirror of
https://github.com/stablyai/orca.git
synced 2026-11-15 18:37:24 +00:00
* fix(i18n): code Mobile Emulator, PDF export, and diagnostics failures * fix(i18n): read emulator error params without Reflect.get --------- Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
9 lines
356 B
TypeScript
9 lines
356 B
TypeScript
import { ipcRenderer } from 'electron'
|
|
import type { PreloadApi } from '../api-types'
|
|
import type { PdfExportResult } from '../../shared/pdf-export-failure-copy'
|
|
|
|
export const exportApi = {
|
|
htmlToPdf: (args: { html: string; title: string }): Promise<PdfExportResult> =>
|
|
ipcRenderer.invoke('export:html-to-pdf', args)
|
|
} satisfies PreloadApi['export']
|