代码初始化

This commit is contained in:
2026-05-15 16:35:31 +08:00
commit b56c63e166
31 changed files with 12969 additions and 0 deletions
+33
View File
@@ -0,0 +1,33 @@
export type DirEntry = {
name: string
path: string
kind: 'file' | 'dir'
}
export type ListDirResult = {
entries: DirEntry[]
error?: string
}
export type OpenFileResult = {
canceled: boolean
path?: string
content?: string
}
export type SaveDialogResult = {
canceled: boolean
path?: string
}
export type OpenFolderResult = {
canceled: boolean
path?: string
}
/** `url` 为可写入 Markdown 的 `file://` 绝对地址(已编码)。 */
export type OpenImageResult = {
canceled: boolean
url?: string
path?: string
}