Skip to content

Commit ac7f83b

Browse files
committed
Merge pull request DefinitelyTyped#6495 from Zorgatone/master
Allow AMD/CommonJS loading of Cordova and Ionic Framework (shim)
2 parents 7eb5bd0 + c76115f commit ac7f83b

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

cordova/cordova.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,3 +95,7 @@ interface UrlUtil {
9595

9696
/** Apache Cordova instance */
9797
declare var cordova: Cordova;
98+
99+
declare module 'cordova' {
100+
export = cordova;
101+
}

ionic/ionic.d.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,16 @@
55

66
/// <reference path="../angularjs/angular.d.ts" />
77

8+
interface IonicStatic {
9+
version: string;
10+
}
11+
12+
declare var ionic: IonicStatic;
13+
14+
declare module 'ionic' {
15+
export = ionic;
16+
}
17+
818
declare module ionic {
919
module actionSheet {
1020
interface IonicActionSheetService {

0 commit comments

Comments
 (0)