dialog: {
showOpenDialog: (
options: {
buttonLabel?: string;
defaultPath?: string;
filters?: string[];
initialLocation?: string;
multipleSelections?: boolean;
openDirectory?: boolean;
openFile?: boolean;
showHiddenFiles?: boolean;
title?: string;
},
) => new (
executor: (
resolve: (value: URL | PromiseLike<URL>) => void,
reject: (reason?: any) => void,
) => void,
) => Promise<URL>;
showSaveDialog: (
options: {
buttonLabel?: string;
defaultPath?: string;
filters: string[];
initialLocation?: string;
showHiddenFiles?: boolean;
suggestedName?: string;
title?: string;
},
) => new (
executor: (
resolve: (value: URL | PromiseLike<URL>) => void,
reject: (reason?: any) => void,
) => void,
) => Promise<URL>;
} = ...
Type Declaration
showOpenDialog: (
options: {
buttonLabel?: string;
defaultPath?: string;
filters?: string[];
initialLocation?: string;
multipleSelections?: boolean;
openDirectory?: boolean;
openFile?: boolean;
showHiddenFiles?: boolean;
title?: string;
},
) => new (
executor: (
resolve: (value: URL | PromiseLike<URL>) => void,
reject: (reason?: any) => void,
) => void,
) => Promise<URL>
showSaveDialog: (
options: {
buttonLabel?: string;
defaultPath?: string;
filters: string[];
initialLocation?: string;
showHiddenFiles?: boolean;
suggestedName?: string;
title?: string;
},
) => new (
executor: (
resolve: (value: URL | PromiseLike<URL>) => void,
reject: (reason?: any) => void,
) => void,
) => Promise<URL>
FIXME: Is this namespace documented anywhere?