UNPKG

839 BTypeScriptView Raw
1import { FontWeightProperty } from 'csstype';
2/**
3 * color/background/font-weight work in node and the browser, the other properties only work in the browser.
4 */
5export declare type LogStyle = string | {
6 background?: string;
7 color?: string;
8 padding?: string;
9 margin?: string;
10 border?: string;
11 /** for bold text in node add the value 'bold' */
12 'font-weight'?: FontWeightProperty;
13 /** if true the style doesn't get reset in node. */
14 [key: string]: number | boolean | string | undefined;
15};
16declare type AcceptableTypes = string | number | null | undefined | object;
17export declare type ConverterInput = AcceptableTypes | Array<AcceptableTypes>;
18export declare type LogMessage = {
19 message: string;
20 style?: LogStyle;
21};
22export declare type LogTable = (number | string | LogMessage)[][];
23export {};