Skip to main content

Native system dialogs for opening and saving files.

Table of contents#

Interfaces#

Functions#

open#

open(options?: OpenDialogOptions): Promise<string | string[]>

Open a file/directory selection dialog

Parameters:#

NameTypeDefault value
optionsOpenDialogOptions{}

Returns: Promise<string | string[]>

A promise resolving to the selected path(s)

Defined in: dialog.ts:51


save#

save(options?: SaveDialogOptions): Promise<string>

Open a file/directory save dialog.

Parameters:#

NameTypeDefault value
optionsSaveDialogOptions{}

Returns: Promise<string>

A promise resolving to the selected path.

Defined in: dialog.ts:72