Skip to content

Commit

Permalink
docs(file): adds Entry to types returned in File.moveDir promise (#456)
Browse files Browse the repository at this point in the history
  • Loading branch information
amuramoto authored and ihadeed committed Aug 19, 2016
1 parent 7a53013 commit 62bcd31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins/file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -470,10 +470,10 @@ export class File {
* @param {string} dirName The source directory name
* @param {string} newPath The destionation path to the directory
* @param {string} newDirName The destination directory name
* @return {Promise<DirectoryEntry|FileError>} Returns a Promise that resolves to the new DirectoryEntry object or rejects with an error.
* @return {Promise<DirectoryEntry|Entry|FileError>} Returns a Promise that resolves to the new DirectoryEntry object or rejects with an error.
*/

static moveDir(path: string, dirName: string, newPath: string, newDirName: string): Promise<DirectoryEntry|FileError> {
static moveDir(path: string, dirName: string, newPath: string, newDirName: string): Promise<DirectoryEntry|Entry|FileError> {
newDirName = newDirName || dirName;

if ((/^\//.test(newDirName))) {
Expand Down

0 comments on commit 62bcd31

Please sign in to comment.