mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 14:57:10 +00:00
remove module declaration and namespace
This commit is contained in:
Vendored
+10
-16
@@ -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;
|
||||
}
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
import * as Tinycon from 'tinycon';
|
||||
|
||||
Tinycon.setOptions({
|
||||
abbreviate: false,
|
||||
background: '#549A2F',
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
{
|
||||
"extends": "dtslint/dt.json",
|
||||
"rules": {
|
||||
"no-declare-current-package": false,
|
||||
"no-single-declare-module": false
|
||||
}
|
||||
"extends": "dtslint/dt.json"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user