mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-23 11:42:36 +08:00
move cordova plugins namespace in to cordova definition
This commit is contained in:
1 parent
02a93db66a
commit
00dc7c1c62
2 files changed
+5
-5
No files matched your search
Vendored
+1
-5
@@ -5,10 +5,6 @@
|
||||
|
||||
/// <reference path="./plugins/keyboard.d.ts" />
|
||||
|
||||
interface Cordova {
|
||||
plugins:Plugins;
|
||||
}
|
||||
|
||||
interface Plugins {
|
||||
interface CordovaPlugins {
|
||||
Keyboard:Ionic.Keyboard;
|
||||
}
|
||||
Vendored
+4
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user