From 5fa6d1d02293d88d7a9a897f845f71520c1b0eea Mon Sep 17 00:00:00 2001 From: Ibrahim Hadeed Date: Wed, 1 Jun 2016 06:56:04 -0400 Subject: [PATCH] tslint --- src/plugins/background-geolocation.ts | 2 +- src/plugins/filetransfer.ts | 6 +++--- src/plugins/globalization.ts | 2 +- src/plugins/screenshot.ts | 8 ++++---- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/plugins/background-geolocation.ts b/src/plugins/background-geolocation.ts index 3cf54000..f3e98937 100644 --- a/src/plugins/background-geolocation.ts +++ b/src/plugins/background-geolocation.ts @@ -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. diff --git a/src/plugins/filetransfer.ts b/src/plugins/filetransfer.ts index 52e9c8fb..65f75c58 100644 --- a/src/plugins/filetransfer.ts +++ b/src/plugins/filetransfer.ts @@ -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 { diff --git a/src/plugins/globalization.ts b/src/plugins/globalization.ts index eacc75a3..c616a2ee 100644 --- a/src/plugins/globalization.ts +++ b/src/plugins/globalization.ts @@ -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; } /** * diff --git a/src/plugins/screenshot.ts b/src/plugins/screenshot.ts index 44085594..710efc09 100644 --- a/src/plugins/screenshot.ts +++ b/src/plugins/screenshot.ts @@ -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); } },