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
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: Tue, 07 Nov 2023 15:11:36 GMT
- Dependencies: none
Credits
These definitions were written by Daniel Waxweiler, Julian Hundeloh, and Piotr Błażejewicz.