mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-21 00:23:00 +08:00
tslint
This commit is contained in:
parent
556125145d
commit
5fa6d1d022
@ -19,7 +19,7 @@ export interface Location {
|
||||
/**
|
||||
* true if location recorded as part of debug
|
||||
*/
|
||||
debug: boolean
|
||||
debug: boolean;
|
||||
|
||||
/**
|
||||
* UTC time of this fix, in milliseconds since January 1, 1970.
|
||||
|
@ -31,7 +31,7 @@ export interface FileUploadOptions {
|
||||
/**
|
||||
* A set of optional key/value pairs to pass in the HTTP request.
|
||||
*/
|
||||
params?: { [s: string]: any; }
|
||||
params?: { [s: string]: any; };
|
||||
|
||||
/**
|
||||
* Whether to upload the data in chunked streaming mode.
|
||||
@ -44,7 +44,7 @@ export interface FileUploadOptions {
|
||||
* than one value. On iOS, FireOS, and Android, if a header named
|
||||
* Content-Type is present, multipart form data will NOT be used.
|
||||
*/
|
||||
headers?: { [s: string]: any; }
|
||||
headers?: { [s: string]: any; };
|
||||
}
|
||||
|
||||
export interface FileUploadResult {
|
||||
@ -67,7 +67,7 @@ export interface FileUploadResult {
|
||||
/**
|
||||
* The HTTP response headers by the server.
|
||||
*/
|
||||
headers: { [s: string]: any; }
|
||||
headers: { [s: string]: any; };
|
||||
}
|
||||
|
||||
export interface FileTransferError {
|
||||
|
@ -107,7 +107,7 @@ export class Globalization {
|
||||
successIndex: 1,
|
||||
errorIndex: 2
|
||||
})
|
||||
static stringToNumber(stringToConvert: string, options: {type: string}): Promise<{value:number|string}> {return; }
|
||||
static stringToNumber(stringToConvert: string, options: {type: string}): Promise<{value: number|string}> {return; }
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -21,9 +21,9 @@ export class Screenshot {
|
||||
(resolve, reject) => {
|
||||
navigator.screenshot.save(
|
||||
(error, result) => {
|
||||
if(error){
|
||||
if (error) {
|
||||
reject(error);
|
||||
}else{
|
||||
}else {
|
||||
resolve(result);
|
||||
}
|
||||
},
|
||||
@ -46,9 +46,9 @@ export class Screenshot {
|
||||
(resolve, reject) => {
|
||||
navigator.screenshot.URI(
|
||||
(error, result) => {
|
||||
if(error){
|
||||
if (error) {
|
||||
reject(error);
|
||||
}else{
|
||||
}else {
|
||||
resolve(result);
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user