mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 20:40:20 +00:00
move cordova plugins namespace in to cordova definition
This commit is contained in:
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