diff --git a/cordova-plugin-app-version/appversion.d.ts b/cordova-plugin-app-version/appversion.d.ts deleted file mode 100644 index 4069e38da..000000000 --- a/cordova-plugin-app-version/appversion.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -interface Cordova { - getAppVersion: { - getAppName: () => ng.IPromise; - getPackageName: () => ng.IPromise; - getVersionCode: () => ng.IPromise; - getVersionNumber: () => ng.IPromise; - }; -} \ No newline at end of file diff --git a/cordova-plugin-app-version/appversion-tests.ts b/cordova-plugin-app-version/cordova-plugin-app-version-tests.ts similarity index 77% rename from cordova-plugin-app-version/appversion-tests.ts rename to cordova-plugin-app-version/cordova-plugin-app-version-tests.ts index 89858c3e5..9f366dfb8 100644 --- a/cordova-plugin-app-version/appversion-tests.ts +++ b/cordova-plugin-app-version/cordova-plugin-app-version-tests.ts @@ -1,5 +1,5 @@ -/// -/// +/// +/// cordova.getAppVersion.getAppName() .then(appName=> { console.log(appName) diff --git a/cordova-plugin-app-version/cordova-plugin-app-version.d.ts b/cordova-plugin-app-version/cordova-plugin-app-version.d.ts new file mode 100644 index 000000000..8b99a9638 --- /dev/null +++ b/cordova-plugin-app-version/cordova-plugin-app-version.d.ts @@ -0,0 +1,14 @@ +/// +// Type definitions for cordova-plugin-app-version v0.1.7 +// Project: https://github.com/whiteoctober/cordova-plugin-app-version +// Definitions by: Markus Wagner +// Definitions: https://github.com/borisyankov/DefinitelyTyped + +interface Cordova { + getAppVersion: { + getAppName: () => Q.IPromise; + getPackageName: () => Q.IPromise; + getVersionCode: () => Q.IPromise; + getVersionNumber: () => Q.IPromise; + }; +} \ No newline at end of file