// Type definitions for ngCordova badge plugin // Project: https://github.com/driftyco/ng-cordova // Definitions by: Phil McCloghry-Laing // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// declare module ngCordova { export interface IBadgeService { hasPermission(): ng.IPromise; promptForPermission(): ng.IPromise; set(badge: number, callback?: Function, scope?: {}): ng.IPromise; get(): ng.IPromise; clear(callback?: Function, scope?: {}): ng.IPromise; increase(count?: number, callback?: Function, scope?: {}): ng.IPromise; decrease(count?: number, callback?: Function, scope?: {}): ng.IPromise; } }