From 316a4a0c06b51fab3495216e863f8c1facb17a58 Mon Sep 17 00:00:00 2001 From: Andrey Kurdyumov Date: Mon, 19 Sep 2016 13:55:38 +0600 Subject: [PATCH] Add property available You could see usage of that property here. https://github.com/apache/cordova-plugin-device/blob/master/www/device.js#L55 --- cordova-plugin-device/index.d.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cordova-plugin-device/index.d.ts b/cordova-plugin-device/index.d.ts index 494b04f1e2..cb75703d1a 100644 --- a/cordova-plugin-device/index.d.ts +++ b/cordova-plugin-device/index.d.ts @@ -13,6 +13,8 @@ interface Device { /** Get the version of Cordova running on the device. */ cordova: string; + /** Indicates that Cordova initialize successfully. */ + available: boolean; /** * The device.model returns the name of the device's model or product. The value is set * by the device manufacturer and may be different across versions of the same product. @@ -31,4 +33,4 @@ interface Device { /** Get the device hardware serial number. */ serial: string;} -declare var device: Device; \ No newline at end of file +declare var device: Device;