Files
opencode/packages/desktop/src/shared/ipc-contract.ts
2026-08-21 02:30:27 +00:00

45 lines
779 B
TypeScript

export type ServerReadyData = {
url: string
username: string | null
password: string | null
}
export type TitlebarTheme = {
mode: "light" | "dark"
scheme?: "system" | "light" | "dark"
}
export type FatalRendererError = {
error: string
url: string
version?: string
platform: string
os?: string
}
export type DirectoryPickerOptions = {
multiple?: boolean
title?: string
defaultPath?: string
}
export type FilePickerOptions = DirectoryPickerOptions & {
extensions?: string[]
}
export type PickedFiles = {
token: string
files: { path: string; name: string; size: number }[]
}
export type SaveFilePickerOptions = {
title?: string
defaultPath?: string
}
export type ClipboardImage = {
buffer: ArrayBuffer
width: number
height: number
}