0.6.5 • Published 6 months ago

@types/tinycon v0.6.5

Weekly downloads
96
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/tinycon

Summary

This package contains type definitions for tinycon (https://github.com/tommoor/tinycon).

Details

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

index.d.ts

// Type definitions for tinycon 0.6
// Project: https://github.com/tommoor/tinycon
// Definitions by: Daniel Waxweiler <https://github.com/dwaxweiler>
//                 Julian Hundeloh <https://github.com/jaulz>
//                 Piotr Błażejewicz <https://github.com/peterblazejewicz>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

declare namespace Tinycon {
    interface TinyconStatic {
        setBubble(label: number | string | null, color?: string): TinyconStatic;
        setImage(url: string): TinyconStatic;
        setOptions(custom: TinyconOptions): TinyconStatic;
        reset: () => void;
    }
    interface TinyconOptions {
        /**
         * @default true
         */
        abbreviate?: boolean | undefined;
        /**
         * @default '#F03D25'
         */
        background?: string | undefined;
        /**
         * @default '#ffffff'
         */
        color?: string | undefined;
        /**
         * @default true
         */
        crossOrigin?: boolean | undefined;
        fallback?: boolean | "force" | undefined;
        font?: string | undefined;
        /**
         * @default 8
         */
        height?: number | undefined;
        /**
         * @default 7
         */
        width?: number | undefined;
    }
}

declare const Tinycon: Tinycon.TinyconStatic;

export as namespace Tinycon;
export = Tinycon;

Additional Details

  • Last updated: Fri, 02 Jul 2021 19:37:08 GMT
  • Dependencies: none
  • Global values: Tinycon

Credits

These definitions were written by Daniel Waxweiler, Julian Hundeloh, and Piotr Błażejewicz.

0.6.5

6 months ago

0.6.4

7 months ago

0.6.3

3 years ago

0.6.2

3 years ago

0.6.1

5 years ago

0.6.0

6 years ago