Skip to content

Commit 00dc7c1

Browse files
committed
move cordova plugins namespace in to cordova definition
1 parent 02a93db commit 00dc7c1

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

cordova-ionic/cordova-ionic.d.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@
55

66
/// <reference path="./plugins/keyboard.d.ts" />
77

8-
interface Cordova {
9-
plugins:Plugins;
10-
}
11-
12-
interface Plugins {
8+
interface CordovaPlugins {
139
Keyboard:Ionic.Keyboard;
1410
}

cordova/cordova.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,12 @@ interface Cordova {
4343
define(moduleName: string, factory: (require: any, exports: any, module: any) => any): void;
4444
/** Access a Cordova module by name. */
4545
require(moduleName: string): any;
46+
/** Namespace for Cordova plugin functionality */
47+
plugins:CordovaPlugins;
4648
}
4749

50+
interface CordovaPlugins {}
51+
4852
interface Document {
4953
addEventListener(type: "deviceready", listener: (ev: Event) => any, useCapture?: boolean): void;
5054
addEventListener(type: "pause", listener: (ev: Event) => any, useCapture?: boolean): void;

0 commit comments

Comments
 (0)