Captain is currently in ALPHA. We are happy to get your feedback
Core API
Handlers

Module: handlers

Table of contents

Variables

Variables

handlers

Const handlers: Object

Type declaration

NameType
downloadStore{ get: <T>(key: string, defaultValue?: T) => Promise<T> }
downloadStore.get[object Object]
inventoryStore{ get: <T>(key: string, defaultValue?: T) => Promise<T> }
inventoryStore.get[object Object]
copyFile(source: string, destination: string) => Promise<any>
copyFileWithMetadata(options: { destination: string ; metadata?: ComfyUIFileMetaData ; source: string }) => Promise<any>
downloadFiles(data: { appId: string ; destination: string ; id: string ; label: string ; source: string ; unzip?: boolean }[]) => Promise<string>
getDirectoryPath() => Promise<any>
getFilePath() => Promise<any>
on(channel: string, callback: (...arguments_: unknown[]) => void) => () => void
readFile(name: string, encoding?: BufferEncoding) => Promise<any>
send(channel: string, value?: unknown) => void
writeFile(name: string, content: string, options: { encoding?: BufferEncoding }, context?: string) => Promise<any>

Defined in

src/electron/handlers.ts:8 (opens in a new tab)