From 86f6d031582e4ec60327df9f8976490a36f2215d Mon Sep 17 00:00:00 2001 From: sbosse Date: Mon, 21 Jul 2025 23:30:47 +0200 Subject: [PATCH] Mon 21 Jul 22:43:21 CEST 2025 --- .../cordova-plugin-device/types/index.d.ts | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 js/ui/cordova/plugins/cordova-plugin-device/types/index.d.ts diff --git a/js/ui/cordova/plugins/cordova-plugin-device/types/index.d.ts b/js/ui/cordova/plugins/cordova-plugin-device/types/index.d.ts new file mode 100644 index 0000000..d4450b4 --- /dev/null +++ b/js/ui/cordova/plugins/cordova-plugin-device/types/index.d.ts @@ -0,0 +1,36 @@ +// Type definitions for Apache Cordova Device plugin +// Project: https://github.com/apache/cordova-plugin-device +// Definitions by: Microsoft Open Technologies Inc +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// +// Copyright (c) Microsoft Open Technologies Inc +// 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 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. + */ + model: string; + /** Get the device's operating system name. */ + platform: string; + /** Get the device's Universally Unique Identifier (UUID). */ + 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;} + +declare var device: Device; \ No newline at end of file