Installation
npm install --save @types/cordova-plugin-badge
Summary
This package contains type definitions for cordova-plugin-badge (https://github.com/katzer/cordova-plugin-badge).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/cordova-plugin-badge.
index.d.ts
interface CordovaPlugins {
notification: {
badge: CordovaPluginBadge;
};
}
interface CordovaPluginBadgeOptions {
autoClear: boolean;
}
interface CordovaPluginBadge {
clear(callback?: (badge: number) => void, scope?: any): void;
set(badge?: number, callback?: (badge: number) => void, scope?: any): void;
get(callback?: (badge: number) => void, scope?: any): void;
increase(count?: number, callback?: (badge: number) => void, scope?: any): void;
decrease(count?: number, callback?: (badge: number) => void, scope?: any): void;
hasPermission(callback?: (granted: boolean) => void, scope?: any): void;
requestPermission(callback?: (granted: boolean) => void, scope?: any): void;
configure(config: CordovaPluginBadgeOptions): CordovaPluginBadgeOptions;
}
Additional Details
- Last updated: Mon, 06 Nov 2023 22:41:05 GMT
- Dependencies: none
Credits
These definitions were written by Tim Brust.