0.0.32 • Published 6 months ago

@types/favico.js v0.0.32

Weekly downloads
1,771
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/favico.js

Summary

This package contains type definitions for favico.js (http://lab.ejci.net/favico.js/).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/favico.js.

index.d.ts

// Type definitions for favico.js
// Project: http://lab.ejci.net/favico.js/
// Definitions by: Yu Matsushita <https://github.com/drowse314-dev-ymat>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped


declare namespace favicojs {

    interface FavicoJsStatic {
        new (opt?: FavicoJsOptions): Favico;
    }

    interface FavicoJsOptions {
        bgColor?: string | undefined;
        textColor?: string | undefined;
        fontFamily?: string | undefined;
        fontStyle?: string | undefined;
        type?: string | undefined;
        position?: string | undefined;
        animation?: string | undefined;
        elementId?: string | undefined;
        element?: HTMLElement | undefined;
        dataUrl?: ((url: string) => any) | undefined;
    }

    interface Favico {

        badge(number: number): void;
        badge(number: number, animation: string): void;
        badge(number: number, opts: FavicoJsOptions): void;

        reset(): void;

        image(imageElement: HTMLElement): void;

        video(imageElement: HTMLElement): void;

        webcam(): void;
    }
}


declare var Favico: favicojs.FavicoJsStatic;

Additional Details

  • Last updated: Thu, 08 Jul 2021 12:01:30 GMT
  • Dependencies: none
  • Global values: Favico

Credits

These definitions were written by Yu Matsushita.