mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
naming convention fixed
Travis errors fixed
This commit is contained in:
-8
@@ -1,8 +0,0 @@
|
||||
interface Cordova {
|
||||
getAppVersion: {
|
||||
getAppName: () => ng.IPromise<string>;
|
||||
getPackageName: () => ng.IPromise<string>;
|
||||
getVersionCode: () => ng.IPromise<string>;
|
||||
getVersionNumber: () => ng.IPromise<string>;
|
||||
};
|
||||
}
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
/// <reference path="cordova.d.ts" />
|
||||
/// <reference path="appversion.d.ts" />
|
||||
/// <reference path="../cordova/cordova.d.ts" />
|
||||
/// <reference path="cordova-plugin-app-version.d.ts" />
|
||||
cordova.getAppVersion.getAppName()
|
||||
.then(appName=> {
|
||||
console.log(appName)
|
||||
@@ -0,0 +1,14 @@
|
||||
/// <reference path="../Q/Q.d.ts" />
|
||||
// Type definitions for cordova-plugin-app-version v0.1.7
|
||||
// Project: https://github.com/whiteoctober/cordova-plugin-app-version
|
||||
// Definitions by: Markus Wagner <https://github.com/Ritzlgrmft/>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
interface Cordova {
|
||||
getAppVersion: {
|
||||
getAppName: () => Q.IPromise<string>;
|
||||
getPackageName: () => Q.IPromise<string>;
|
||||
getVersionCode: () => Q.IPromise<string>;
|
||||
getVersionNumber: () => Q.IPromise<string>;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user