mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-04-27 21:41:25 +08:00
refactor(http): change return type to any
This commit is contained in:
parent
3b32e19bf1
commit
4b14ce2eec
@ -283,7 +283,7 @@ export class HTTP extends IonicNativePlugin {
|
|||||||
* @param headers {Object} The headers to set for this request
|
* @param headers {Object} The headers to set for this request
|
||||||
* @param filePath {string} The local path of the file to upload
|
* @param filePath {string} The local path of the file to upload
|
||||||
* @param name {string} The name of the parameter to pass the file along as
|
* @param name {string} The name of the parameter to pass the file along as
|
||||||
* @returns {Promise<FileEntry>} returns a promise that resolve on success, and reject on failure
|
* @returns {Promise<any>} returns a FileEntry promise that resolve on success, and reject on failure
|
||||||
*/
|
*/
|
||||||
@Cordova()
|
@Cordova()
|
||||||
uploadFile(
|
uploadFile(
|
||||||
@ -292,7 +292,7 @@ export class HTTP extends IonicNativePlugin {
|
|||||||
headers: any,
|
headers: any,
|
||||||
filePath: string,
|
filePath: string,
|
||||||
name: string
|
name: string
|
||||||
): Promise<FileEntry> {
|
): Promise<any> {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -302,7 +302,7 @@ export class HTTP extends IonicNativePlugin {
|
|||||||
* @param body {Object} The body of the request
|
* @param body {Object} The body of the request
|
||||||
* @param headers {Object} The headers to set for this request
|
* @param headers {Object} The headers to set for this request
|
||||||
* @param filePath {string} The path to download the file to, including the file name.
|
* @param filePath {string} The path to download the file to, including the file name.
|
||||||
* @returns {Promise<FileEntry>} returns a promise that resolve on success, and reject on failure
|
* @returns {Promise<any>} returns a FileEntry promise that resolve on success, and reject on failure
|
||||||
*/
|
*/
|
||||||
@Cordova()
|
@Cordova()
|
||||||
downloadFile(
|
downloadFile(
|
||||||
@ -310,7 +310,7 @@ export class HTTP extends IonicNativePlugin {
|
|||||||
body: any,
|
body: any,
|
||||||
headers: any,
|
headers: any,
|
||||||
filePath: string
|
filePath: string
|
||||||
): Promise<FileEntry> {
|
): Promise<any> {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user