@types/cordova-plugin-badge
TypeScript icon, indicating that this package has built-in type declarations

0.8.3 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/cordova-plugin-badge

Weekly Downloads

230

Version

0.8.3

License

MIT

Unpacked Size

4.23 kB

Total Files

5

Last publish

Collaborators

  • types