refactor: follow array-type lint rule

This commit is contained in:
Daniel
2018-09-17 16:05:37 +02:00
parent 60a7190eda
commit c9d41ebd8a
31 changed files with 115 additions and 114 deletions
@@ -7,8 +7,8 @@ export interface CallDirectoryItem {
}
export interface CallDirectoryLog {
plugin: Array<string>;
extension: Array<string>;
plugin: string[];
extension: string[];
}
/**
@@ -62,21 +62,21 @@ export class CallDirectory extends IonicNativePlugin {
/**
* Add identification numbers
* @param {Array<CallDirectoryItem>} items Set of numbers with labels
* @param {CallDirectoryItem[]} items Set of numbers with labels
* @return {Promise<any>} Returns a promise that resolves when numbers are added
*/
@Cordova()
addIdentification(items: Array<CallDirectoryItem>): Promise<any> {
addIdentification(items: CallDirectoryItem[]): Promise<any> {
return;
}
/**
* Remove identification numbers
* @param {Array<CallDirectoryItem>} items Set of numbers with arbitrary label
* @param {CallDirectoryItem[]} items Set of numbers with arbitrary label
* @return {Promise<any>} Returns a promise that resolves when numbers are removed
*/
@Cordova()
removeIdentification(items: Array<CallDirectoryItem>): Promise<any> {
removeIdentification(items: CallDirectoryItem[]): Promise<any> {
return;
}
@@ -91,10 +91,10 @@ export class CallDirectory extends IonicNativePlugin {
/**
* Get all numbers and labels in call directory
* @return {Array<CallDirectoryItem>} Returns a promise that resolves with an array of all items
* @return {CallDirectoryItem[]} Returns a promise that resolves with an array of all items
*/
@Cordova()
getAllItems(): Promise<Array<CallDirectoryItem>> {
getAllItems(): Promise<CallDirectoryItem[]> {
return;
}