From 15d316eab3204ce01fa0b329359268eee4eef91b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Radek=20Mat=C4=9Bj?= Date: Mon, 20 Nov 2017 13:50:33 +0100 Subject: [PATCH] fixup! Declare property on window object --- types/cordova-plugin-device/index.d.ts | 27 +++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/types/cordova-plugin-device/index.d.ts b/types/cordova-plugin-device/index.d.ts index 0ca54cf34a..db08fa1c35 100644 --- a/types/cordova-plugin-device/index.d.ts +++ b/types/cordova-plugin-device/index.d.ts @@ -7,13 +7,9 @@ // Licensed under the MIT license /** - * This plugin defines a global device object, which describes the device's hardware and software. - * Although the object is in the global scope, it is not available until after the deviceready event. - */ - interface Window { - device: Device; -} - +* This plugin defines a global device object, which describes the device's hardware and software. +* Although the object is in the global scope, it is not available until after the deviceready event. +*/ interface Device { /** Get the version of Cordova running on the device. */ cordova: string; @@ -30,11 +26,16 @@ interface Device { uuid: string; /** Get the operating system version. */ version: string; - /** Get the device's manufacturer. */ - manufacturer: string; - /** Whether the device is running on a simulator. */ - isVirtual: boolean; - /** Get the device hardware serial number. */ - serial: string;} + /** Get the device's manufacturer. */ + manufacturer: string; + /** Whether the device is running on a simulator. */ + isVirtual: boolean; + /** Get the device hardware serial number. */ + serial: string; +} + +interface Window { + device: Device; +} declare var device: Device;