mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-16 11:02:11 +08:00
Merge pull request #8119 from Bnaya/patch-1
Add resolveLocalFileSystemURL
This commit is contained in:
13
cordova/plugins/FileSystem.d.ts
vendored
13
cordova/plugins/FileSystem.d.ts
vendored
@@ -2,7 +2,7 @@
|
||||
// Project: https://github.com/apache/cordova-plugin-file
|
||||
// Definitions by: Microsoft Open Technologies, Inc. <http://msopentech.com>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
//
|
||||
//
|
||||
// Copyright (c) Microsoft Open Technologies, Inc.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
@@ -19,6 +19,15 @@ interface Window {
|
||||
size: number,
|
||||
successCallback: (fileSystem: FileSystem) => void,
|
||||
errorCallback?: (fileError: FileError) => void): void;
|
||||
/**
|
||||
* Look up file system Entry referred to by local URL.
|
||||
* @param string url URL referring to a local file or directory
|
||||
* @param successCallback invoked with Entry object corresponding to URL
|
||||
* @param errorCallback invoked if error occurs retrieving file system entry
|
||||
*/
|
||||
resolveLocalFileSystemURL(url: string,
|
||||
successCallback: (entry: Entry) => void,
|
||||
errorCallback?: (error: FileError) => void): void;
|
||||
/**
|
||||
* Look up file system Entry referred to by local URI.
|
||||
* @param string uri URI referring to a local file or directory
|
||||
@@ -40,7 +49,7 @@ interface FileSystem {
|
||||
root: DirectoryEntry;
|
||||
}
|
||||
|
||||
/**
|
||||
/**
|
||||
* An abstract interface representing entries in a file system,
|
||||
* each of which may be a File or DirectoryEntry.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user