mirror of
https://github.com/Heretek-AI/opencode.git
synced 2026-11-22 23:47:02 -10:00
Co-authored-by: Brendan Allan <[email protected]> Co-authored-by: Brendan Allan <[email protected]>
45 lines
779 B
TypeScript
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
|
|
}
|