mirror of
https://github.com/stablyai/orca.git
synced 2026-10-31 17:17:38 +00:00
12 lines
460 B
TypeScript
12 lines
460 B
TypeScript
import { ipcRenderer } from 'electron'
|
|
import type {
|
|
LocalhostWorktreeLabelResult,
|
|
LocalhostWorktreeLabelRoute
|
|
} from '../../shared/localhost-worktree-labels'
|
|
import type { PreloadApi } from '../api-types'
|
|
|
|
export const localhostWorktreeLabelsApi = {
|
|
register: (args: LocalhostWorktreeLabelRoute): Promise<LocalhostWorktreeLabelResult> =>
|
|
ipcRenderer.invoke('localhostWorktreeLabels:register', args)
|
|
} satisfies PreloadApi['localhostWorktreeLabels']
|