mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-01 15:50:13 +00:00
include the global cordova variable on the window object
This commit is contained in:
@@ -8,6 +8,8 @@
|
||||
|
||||
console.log('cordova.version: ' + cordova.version + ', cordova.platformId: ' + cordova.platformId);
|
||||
|
||||
console.log(typeof window.cordova);
|
||||
|
||||
cordova.exec(null, null, "NativeClassName", "MethodName");
|
||||
|
||||
cordova.define('mymodule', (req, exp, mod)=> {
|
||||
@@ -286,4 +288,4 @@ db.transaction(
|
||||
//----------------------------------------------------------------------
|
||||
navigator.notification.vibrate(100);
|
||||
navigator.notification.vibrateWithPattern([100, 200, 200, 150, 50], 3);
|
||||
setTimeout(navigator.notification.cancelVibration, 1000);
|
||||
setTimeout(navigator.notification.cancelVibration, 1000);
|
||||
|
||||
4
cordova/cordova.d.ts
vendored
4
cordova/cordova.d.ts
vendored
@@ -72,6 +72,10 @@ interface Document {
|
||||
removeEventListener(type: string, listener: (ev: Event) => any, useCapture?: boolean): void;
|
||||
}
|
||||
|
||||
interface Window {
|
||||
cordova:Cordova;
|
||||
}
|
||||
|
||||
// cordova/argscheck module
|
||||
interface ArgsCheck {
|
||||
checkArgs(argsSpec: string, functionName: string, args: any[], callee?: any): void;
|
||||
|
||||
Reference in New Issue
Block a user