From 56b74302582566a948e8d99ccd784f2d3a3ab040 Mon Sep 17 00:00:00 2001 From: pklaschka Date: Fri, 31 Aug 2018 02:05:55 +0200 Subject: [PATCH] Removing orphaned interfaces (replaced by options config JSDoc) --- types/uxp.d.ts | 52 +------------------------------------------------- 1 file changed, 1 insertion(+), 51 deletions(-) diff --git a/types/uxp.d.ts b/types/uxp.d.ts index 5f22c30..3bde8a6 100644 --- a/types/uxp.d.ts +++ b/types/uxp.d.ts @@ -1,55 +1,5 @@ declare const shell: Shell; -interface CopyToOptions { - /** - * if `true`, allows overwriting existing entries - */ - overwrite?: boolean; -} - -interface MoveToOptions { - /** - * if `true`, allows overwriting existing entries - */ - overwrite: boolean; - /** - * If specified?, the entry is renamed to this name - */ - newName?: string; -} - -interface FileReadOptions { - format?: Symbol; -} - -interface FileWriteOptions { - format?: Symbol; - append?: boolean; -} - -type GetFileForOpeningOptions = { - initialDomain?: Symbol; - types?: string[]; - allowMultiple?: boolean; -} - -interface GetFileForSavingOptions { - initialDomain?: Symbol; -} - -interface GetFolderOptions { - initialDomain?: Symbol; -} - -interface CreateEntryOptions { - type?: Symbol; - overwrite?: boolean; -} - -interface RenameEntryOptions { - overwrite?: boolean; -} - declare module storage { /** * An Entry is the base class for `File` and `Folder`. You'll typically never instantiate an `Entry` directly, but it provides the common fields and methods that both `File` and `Folder` share. @@ -259,7 +209,7 @@ declare module storage { * * @returns the selected folder, or `null` if no folder is selected. */ - public getFolder(options: GetFolderOptions): Promise; + public getFolder(options?): Promise; /** * Returns a temporary folder. The contents of the folder will be removed when the extension is disposed.