Skip to content

Commit

Permalink
Merge pull request DefinitelyTyped#33063 from jaulz/patch-1
Browse files Browse the repository at this point in the history
[tinycon] update types
  • Loading branch information
minestarks authored Feb 15, 2019
2 parents d40dad6 + 976d022 commit 434ce0e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
5 changes: 3 additions & 2 deletions types/tinycon/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
// 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>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

export function setBubble(count: number): void;
export function setBubble(count: number | string | null): void;

export function setOptions(options: TinyconOptions): void;

export interface TinyconOptions {
abbreviate?: boolean;
background?: string;
color?: string;
fallback?: boolean;
fallback?: boolean | 'force';
font?: string;
height?: number;
width?: number;
Expand Down
12 changes: 12 additions & 0 deletions types/tinycon/tinycon-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,16 @@ Tinycon.setOptions({
width: 7
});

Tinycon.setOptions({
abbreviate: false,
background: '#549A2F',
color: '#ffffff',
fallback: 'force',
font: '10px arial',
height: 9,
width: 7
});

Tinycon.setBubble(7);

Tinycon.setBubble(null);

0 comments on commit 434ce0e

Please sign in to comment.