Merge pull request #26342 from dwaxweiler/tinycon

tinycon: initial release
This commit is contained in:
Nathan Shively-Sanders
2018-06-20 10:45:32 -07:00
committed by GitHub
4 changed files with 57 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
// Type definitions for tinycon 0.6
// Project: https://github.com/tommoor/tinycon
// Definitions by: Daniel Waxweiler <https://github.com/dwaxweiler>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export function setBubble(count: number): void;
export function setOptions(options: TinyconOptions): void;
export interface TinyconOptions {
abbreviate?: boolean;
background?: string;
color?: string;
fallback?: boolean;
font?: string;
height?: number;
width?: number;
}
+13
View File
@@ -0,0 +1,13 @@
import * as Tinycon from 'tinycon';
Tinycon.setOptions({
abbreviate: false,
background: '#549A2F',
color: '#ffffff',
fallback: true,
font: '10px arial',
height: 9,
width: 7
});
Tinycon.setBubble(7);
+23
View File
@@ -0,0 +1,23 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": [
"es6"
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"baseUrl": "../",
"typeRoots": [
"../"
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
"tinycon-tests.ts"
]
}
+3
View File
@@ -0,0 +1,3 @@
{
"extends": "dtslint/dt.json"
}