From 00dc7c1c629c3fd5e92a56afc87efda571d84e22 Mon Sep 17 00:00:00 2001 From: davetayls Date: Wed, 1 Apr 2015 13:46:04 +0100 Subject: [PATCH] move cordova plugins namespace in to cordova definition --- cordova-ionic/cordova-ionic.d.ts | 6 +----- cordova/cordova.d.ts | 4 ++++ 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cordova-ionic/cordova-ionic.d.ts b/cordova-ionic/cordova-ionic.d.ts index c9b1e635b3..5f0adee3ec 100644 --- a/cordova-ionic/cordova-ionic.d.ts +++ b/cordova-ionic/cordova-ionic.d.ts @@ -5,10 +5,6 @@ /// -interface Cordova { - plugins:Plugins; -} - -interface Plugins { +interface CordovaPlugins { Keyboard:Ionic.Keyboard; } diff --git a/cordova/cordova.d.ts b/cordova/cordova.d.ts index 75b77ebe2c..32ef0a76b6 100644 --- a/cordova/cordova.d.ts +++ b/cordova/cordova.d.ts @@ -43,8 +43,12 @@ interface Cordova { define(moduleName: string, factory: (require: any, exports: any, module: any) => any): void; /** Access a Cordova module by name. */ require(moduleName: string): any; + /** Namespace for Cordova plugin functionality */ + plugins:CordovaPlugins; } +interface CordovaPlugins {} + interface Document { addEventListener(type: "deviceready", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "pause", listener: (ev: Event) => any, useCapture?: boolean): void;