From 6fab67ca9ff4e4320007bbe40d4974836f9d59e0 Mon Sep 17 00:00:00 2001 From: Louis Orleans Date: Thu, 5 May 2016 15:50:28 -0700 Subject: [PATCH] Adding some types to `plugins/hotspot.ts` --- src/plugins/hotspot.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/plugins/hotspot.ts b/src/plugins/hotspot.ts index 95d6d6f7c..9903f3a14 100644 --- a/src/plugins/hotspot.ts +++ b/src/plugins/hotspot.ts @@ -44,16 +44,16 @@ export class Hotspot { static getAllHotspotDevices(): Promise {return; } @Cordova() - static connectToHotspot(ssid, password): Promise {return; } + static connectToHotspot(ssid: string, password: string): Promise {return; } @Cordova() - static connectToWifiAuthEncrypt(ssid, password, authentication, encryption): Promise {return; } + static connectToWifiAuthEncrypt(ssid: string, password: string, authentication, encryption): Promise {return; } @Cordova() - static addWifiNetwork(ssid, mode, password): Promise {return; } + static addWifiNetwork(ssid: string, mode, password): Promise {return; } @Cordova() - static removeWifiNetwork(ssid): Promise {return; } + static removeWifiNetwork(ssid: string): Promise {return; } @Cordova() static isConnectedToInternet(): Promise {return; } @@ -77,7 +77,7 @@ export class Hotspot { static scanWifiByLevel(): Promise {return; } @Cordova() - static startPeriodicallyScan(interval, duration): Promise {return; } + static startPeriodicallyScan(interval: number, duration: number): Promise {return; } @Cordova() static stopPeriodicallyScan(): Promise {return; } @@ -89,16 +89,16 @@ export class Hotspot { static getConnectionInfo(): Promise {return; } @Cordova() - static pingHost(ip): Promise {return; } + static pingHost(ip: string): Promise {return; } @Cordova() - static getMacAddressOfHost(ip): Promise {return; } + static getMacAddressOfHost(ip: string): Promise {return; } @Cordova() - static isDnsLive(ip): Promise {return; } + static isDnsLive(ip: string): Promise {return; } @Cordova() - static isPortLife(ip): Promise {return; } + static isPortLife(ip: string): Promise {return; } @Cordova() static isRooted(): Promise {return; }