remove module declaration and namespace

This commit is contained in:
Daniel Waxweiler
2018-06-13 15:25:07 +02:00
parent af0c902725
commit e7e65dabaa
3 changed files with 13 additions and 21 deletions
+10 -16
View File
@@ -3,22 +3,16 @@
// Definitions by: Daniel Waxweiler <https://github.com/dwaxweiler>
// 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;
}
+2
View File
@@ -1,3 +1,5 @@
import * as Tinycon from 'tinycon';
Tinycon.setOptions({
abbreviate: false,
background: '#549A2F',
+1 -5
View File
@@ -1,7 +1,3 @@
{
"extends": "dtslint/dt.json",
"rules": {
"no-declare-current-package": false,
"no-single-declare-module": false
}
"extends": "dtslint/dt.json"
}