@squared-functions/types
Advanced tools
Comparing version 4.8.78 to 4.8.79
@@ -5,3 +5,3 @@ /// <reference path="type.d.ts" /> | ||
import type { BackgroundColor, ForegroundColor } from 'chalk'; | ||
import type { BackgroundColor as IBackgroundColor, ForegroundColor as IForegroundColor } from 'chalk'; | ||
@@ -24,13 +24,13 @@ import type { LOG_TYPE, STATUS_TYPE } from '../index.d'; | ||
export interface LoggerColor { | ||
titleColor?: typeof ForegroundColor | HexColor; | ||
titleBgColor?: typeof BackgroundColor | HexColor; | ||
titleColor?: ForegroundColor; | ||
titleBgColor?: BackgroundColor; | ||
titleBold?: boolean; | ||
valueColor?: typeof ForegroundColor | HexColor; | ||
valueBgColor?: typeof BackgroundColor | HexColor; | ||
valueColor?: ForegroundColor; | ||
valueBgColor?: BackgroundColor; | ||
valueBold?: boolean; | ||
hintColor?: typeof ForegroundColor | HexColor; | ||
hintBgColor?: typeof BackgroundColor | HexColor; | ||
hintColor?: ForegroundColor; | ||
hintBgColor?: BackgroundColor; | ||
hintBold?: boolean; | ||
messageColor?: typeof ForegroundColor | HexColor; | ||
messageBgColor?: typeof BackgroundColor | HexColor; | ||
messageColor?: ForegroundColor; | ||
messageBgColor?: BackgroundColor; | ||
messageBold?: boolean; | ||
@@ -41,4 +41,4 @@ } | ||
width?: T; | ||
color?: typeof ForegroundColor | HexColor; | ||
bgColor?: typeof BackgroundColor | HexColor; | ||
color?: ForegroundColor; | ||
bg_color?: BackgroundColor; | ||
bold?: boolean; | ||
@@ -116,2 +116,4 @@ justify?: TextAlign; | ||
export type LogComponent = Partial<Pick<LogStatus<StatusType>, "type" | "value" | "timeStamp" | "duration" | "from">>; | ||
export type BackgroundColor = typeof IBackgroundColor | HexColor; | ||
export type ForegroundColor = typeof IForegroundColor | HexColor; | ||
export type TextAlign = "left" | "center" | "right"; | ||
@@ -118,0 +120,0 @@ export type ErrorOutMethod = (err: Error, data: LogTypeValue, require?: NodeRequire) => void; |
@@ -296,11 +296,13 @@ import type { PermissionAction, PermissionSettings, PermittedDirectories } from './core'; | ||
export interface LoggerModule<T = NumString, U = boolean | T> { | ||
export interface LoggerModule<T = NumString, U = boolean | T, V = LoggerFormat<T>> { | ||
enabled?: boolean; | ||
level?: NumString; | ||
production?: string[]; | ||
format?: { | ||
title?: LoggerFormat<T>; | ||
value?: LoggerFormat<T>; | ||
hint?: LoggerFormat<T> & { unit?: "auto" | "s" | "ms" }; | ||
session_id?: LoggerFormat<T>; | ||
message?: LoggerFormat<T>; | ||
meter?: LoggerFormat<T>; | ||
title?: V; | ||
value?: V; | ||
hint?: V & { unit?: "auto" | "s" | "ms" }; | ||
session_id?: V; | ||
message?: V; | ||
meter?: V; | ||
}; | ||
@@ -307,0 +309,0 @@ meter?: { |
{ | ||
"name": "@squared-functions/types", | ||
"version": "4.8.78", | ||
"version": "4.8.79", | ||
"description": "Type definitions for squared-functions", | ||
@@ -5,0 +5,0 @@ "types": "index.d.ts", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3357
146512