UNPKG

@el3um4s/ipc-for-electron-chokidar

Version:

Allow the renderer to use chokidar (Minimal and efficient cross-platform file watching library)

16 lines (15 loc) 415 B
export declare type NameAPI = "chokidar"; export declare type DefaultApiKey = "ipc"; export interface WatchFolderMessage { folderPath: string; nameWatcher: string; } export interface WatchFileMessage { filePath: string; nameWatcher: string; } export interface Changed { path: string; eventName: "add" | "change" | "unlink" | "addDir" | "unlinkDir"; nameWatcher: string; }