diff --git a/types/tinycon/index.d.ts b/types/tinycon/index.d.ts index 9393a1aa6f..3f385603cc 100644 --- a/types/tinycon/index.d.ts +++ b/types/tinycon/index.d.ts @@ -3,22 +3,16 @@ // Definitions by: Daniel Waxweiler // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -declare namespace Tinycon { - function setBubble(count: number): void; +export function setBubble(count: number): void; - function setOptions(options: TinyconOptions): void; +export function setOptions(options: TinyconOptions): void; - interface TinyconOptions { - abbreviate?: boolean; - background?: string; - color?: string; - fallback?: boolean; - font?: string; - height?: number; - width?: number; - } -} - -declare module "tinycon" { - export = Tinycon; +export interface TinyconOptions { + abbreviate?: boolean; + background?: string; + color?: string; + fallback?: boolean; + font?: string; + height?: number; + width?: number; } diff --git a/types/tinycon/tinycon-tests.ts b/types/tinycon/tinycon-tests.ts index 3004a503ef..b4bcc304ac 100644 --- a/types/tinycon/tinycon-tests.ts +++ b/types/tinycon/tinycon-tests.ts @@ -1,3 +1,5 @@ +import * as Tinycon from 'tinycon'; + Tinycon.setOptions({ abbreviate: false, background: '#549A2F', diff --git a/types/tinycon/tslint.json b/types/tinycon/tslint.json index bd3bb78849..f93cf8562a 100644 --- a/types/tinycon/tslint.json +++ b/types/tinycon/tslint.json @@ -1,7 +1,3 @@ { - "extends": "dtslint/dt.json", - "rules": { - "no-declare-current-package": false, - "no-single-declare-module": false - } + "extends": "dtslint/dt.json" }