mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-24 11:29:30 +08:00
Merge pull request #6797 from jacqueskang/ng-cordova-app-version
Add ngCordova appVersion plugin
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
/// <reference path="app-version.d.ts" />
|
||||
|
||||
module ngCordova {
|
||||
function test($cordovaAppVersion: IAppVersionService) {
|
||||
|
||||
$cordovaAppVersion.getVersionNumber()
|
||||
.then((versionNumber) => {
|
||||
console.log(versionNumber.toLowerCase());
|
||||
});
|
||||
|
||||
$cordovaAppVersion.getVersionCode()
|
||||
.then((versionCode) => {
|
||||
console.log(versionCode.toLowerCase());
|
||||
});
|
||||
}
|
||||
}
|
||||
Vendored
+13
@@ -0,0 +1,13 @@
|
||||
// Type definitions for ngCordova datepicker plugin
|
||||
// Project: https://github.com/driftyco/ng-cordova
|
||||
// Definitions by: Jacques Kang <https://www.linkedin.com/in/jacqueskang>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
/// <reference path="../angularjs/angular.d.ts" />
|
||||
|
||||
declare module ngCordova {
|
||||
export interface IAppVersionService {
|
||||
getVersionNumber(): ng.IPromise<string>;
|
||||
getVersionCode(): ng.IPromise<string>;
|
||||
}
|
||||
}
|
||||
Vendored
+1
@@ -13,3 +13,4 @@
|
||||
/// <reference path="deviceOrientation.d.ts"/>
|
||||
/// <reference path="appAvailability.d.ts"/>
|
||||
/// <reference path="datepicker.d.ts"/>
|
||||
/// <reference path="app-version.d.ts"/>
|
||||
|
||||
Reference in New Issue
Block a user