Skip to content

Commit

Permalink
fix(index-app-content): fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
danielsogl committed Sep 17, 2018
1 parent 4803912 commit 2611061
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
19 changes: 12 additions & 7 deletions src/@ionic-native/plugins/index-app-content/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
import { Injectable } from '@angular/core';
import { Cordova, CordovaFunctionOverride, IonicNativePlugin, Plugin } from '@ionic-native/core';
import {
Cordova,
CordovaFunctionOverride,
IonicNativePlugin,
Plugin
} from '@ionic-native/core';
import { Observable } from 'rxjs';

export interface IndexItem {
Expand All @@ -16,7 +21,7 @@ export interface IndexItem {
/**
* Item keywords
*/
keywords?: Array < string > ;
keywords?: Array<string>;

/**
* Lifetime in minutes
Expand Down Expand Up @@ -78,7 +83,7 @@ export class IndexAppContent extends IonicNativePlugin {
* @return {Promise<boolean>} Returns a promise that resolves with true if indexing is available, false if not
*/
@Cordova()
isIndexingAvailable(): Promise <boolean> {
isIndexingAvailable(): Promise<boolean> {
return;
}

Expand All @@ -88,7 +93,7 @@ export class IndexAppContent extends IonicNativePlugin {
* @return {Promise<any>} Returns if index set was successfull
*/
@Cordova()
setItems(items: Array <IndexItem> ): Promise < any > {
setItems(items: Array<IndexItem>): Promise<any> {
return;
}

Expand All @@ -98,7 +103,7 @@ export class IndexAppContent extends IonicNativePlugin {
* @return {Promise<any>} Resolve if successfull
*/
@Cordova()
clearItemsForDomains(domains: Array <string> ): Promise < any > {
clearItemsForDomains(domains: Array<string>): Promise<any> {
return;
}

Expand All @@ -108,7 +113,7 @@ export class IndexAppContent extends IonicNativePlugin {
* @return {Promise<any>} Resolve if successfull
*/
@Cordova()
clearItemsForIdentifiers(identifiers: Array < string > ): Promise < any > {
clearItemsForIdentifiers(identifiers: Array<string>): Promise<any> {
return;
}

Expand All @@ -118,7 +123,7 @@ export class IndexAppContent extends IonicNativePlugin {
* @returns {Observable<any>} returns an observable that notifies you when he user presses on the home screen icon
*/
@CordovaFunctionOverride()
onItemPressed(): Observable < any > {
onItemPressed(): Observable<any> {
return;
}

Expand Down
2 changes: 0 additions & 2 deletions tslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@
"member-access": false,
"adjacent-overload-signatures": false,
"no-angle-bracket-type-assertion": false,
"space-within-parens": false,
"no-irregular-whitespace": false,
"no-duplicate-imports": false,
"no-constant-condition": false
}
}

0 comments on commit 2611061

Please sign in to comment.