mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2026-04-13 00:00:10 +08:00
chore(): optimize CordovaProperty and InstanceProperty decorators (#635)
* chore(): optimize InstanceProperty wrapper * chore(): optimize CordovaProperty wrapper * tslint' * fix decorators
This commit is contained in:
@@ -1,11 +1,12 @@
|
||||
import { CordovaProperty, Plugin } from './plugin';
|
||||
|
||||
|
||||
declare var window: {
|
||||
device: Device
|
||||
};
|
||||
declare var window: any;
|
||||
|
||||
export interface Device {
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
export interface IDevice {
|
||||
/** Get the version of Cordova running on the device. */
|
||||
cordova: string;
|
||||
/**
|
||||
@@ -54,6 +55,6 @@ export class Device {
|
||||
* @returns {Device} The device object.
|
||||
*/
|
||||
@CordovaProperty
|
||||
static get device(): Device { return window.device; }
|
||||
static device: IDevice;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user