debug-color2
Version:
colorize console log, this module can work with require('debug')
17 lines (16 loc) • 1.02 kB
TypeScript
/**
* Created by user on 2018/6/29/029.
*/
import { Level } from 'chalk';
import { Console2 } from './node';
import { IConsoleWithStream, IChalk } from './types';
import { ITSArrayListMaybeReadonly } from 'ts-type/lib/type/base';
export declare function isForceColor(env?: any): boolean | number | Level;
export declare function isSupportsColor(): Level;
export declare function createFnChalkByConsole<CI extends Console2>(console: CI): <R, C extends Console2 = CI>(cb: (chalk: C["chalk"], _console: C) => R, _console?: C) => R;
export declare function chalkByConsoleMaybe<CI extends Console2>(console?: CI): IChalk;
export declare function createChalkStyleLog<CI extends Console2>(console: CI, name: string, failBack?: string): (...argv: any[]) => any;
export declare function hasConsoleStream(target: IConsoleWithStream<object>): boolean;
export declare function arrayIncludes<T>(arr: ITSArrayListMaybeReadonly<T>, value: any): value is T;
declare const _default: typeof import("./util");
export default _default;