mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
move cordova plugins namespace in to cordova definition
This commit is contained in:
parent
02a93db66a
commit
00dc7c1c62
6
cordova-ionic/cordova-ionic.d.ts
vendored
6
cordova-ionic/cordova-ionic.d.ts
vendored
@ -5,10 +5,6 @@
|
||||
|
||||
/// <reference path="./plugins/keyboard.d.ts" />
|
||||
|
||||
interface Cordova {
|
||||
plugins:Plugins;
|
||||
}
|
||||
|
||||
interface Plugins {
|
||||
interface CordovaPlugins {
|
||||
Keyboard:Ionic.Keyboard;
|
||||
}
|
||||
|
||||
4
cordova/cordova.d.ts
vendored
4
cordova/cordova.d.ts
vendored
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user