mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-06 15:57:13 +00:00
Merge pull request #26342 from dwaxweiler/tinycon
tinycon: initial release
This commit is contained in:
Vendored
+18
@@ -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;
|
||||
}
|
||||
@@ -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);
|
||||
@@ -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"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"extends": "dtslint/dt.json"
|
||||
}
|
||||
Reference in New Issue
Block a user