update
This commit is contained in:
@@ -61,6 +61,11 @@ const api = {
|
||||
files: (): Promise<string[]> => ipcRenderer.invoke('search:files'),
|
||||
},
|
||||
|
||||
dialog: {
|
||||
unsavedClose: (path: string): Promise<'save' | 'discard' | 'cancel'> =>
|
||||
ipcRenderer.invoke('dialog:unsavedClose', path),
|
||||
},
|
||||
|
||||
/** Subscribe to "the project changed on disk" pings. Returns an unsubscribe. */
|
||||
onProjectChanged: (cb: () => void): (() => void) => {
|
||||
const handler = (): void => cb()
|
||||
|
||||
Reference in New Issue
Block a user