@sprit/console-tag
Version:

22 lines (21 loc) • 552 B
TypeScript
import { IOption } from './interface';
/**
* 空值显示字符
*/
export declare const EMPTY_STR = "-";
/**
* 获取环境变量
*/
export declare const getEnv: (key: string) => string | undefined;
/**
* nil 时输出 空值字符
*/
export declare const defaultToEmpty: (value: string | undefined | null) => string;
/**
* 聚合 console
*/
export declare const combineConsole: (option: IOption) => [string, string, string][];
/**
* 获取 html script
*/
export declare const getHtmlScript: (option: IOption) => string;