33 * @param {number } [spaces]
44 * @returns {string }
55 */
6- export function stringify ( any : any , spaces ?: number | undefined ) : string ;
6+ export function stringify ( any : any , spaces ?: number ) : string ;
77export class Log extends LogBase {
88 /**
99 * Apply (and get) global options
@@ -26,21 +26,21 @@ export class Log extends LogBase {
2626 * @param {LogOptionWrapConsole } [opts] options
2727 * @return {function } unwrap function
2828 */
29- static wrapConsole ( name ?: string | undefined , opts ?: LogOptionWrapConsole | undefined ) : Function ;
29+ static wrapConsole ( name ?: string , opts ?: LogOptionWrapConsole ) : Function ;
3030 /**
3131 * log exit events like 'unhandledRejection', 'uncaughtException'
3232 * and then let the process die
3333 * @param {string } [name='exit']
3434 * @param {LogOptionHandleExitEvents } [opts] options
3535 */
36- static handleExitEvents ( name ?: string | undefined , opts ?: LogOptionHandleExitEvents ) : void ;
36+ static handleExitEvents ( name ?: string , opts ?: LogOptionHandleExitEvents ) : void ;
3737 static wrapDebug ( ) : ( ) => void ;
3838 /**
3939 * creates a new logger
4040 * @param {String } name - namespace of Logger
4141 * @param {LogOptions } [opts] - see Log.options
4242 */
43- constructor ( name : string , opts ?: LogOptions | undefined ) ;
43+ constructor ( name : string , opts ?: LogOptions ) ;
4444 color : any ;
4545 levColors : { } ;
4646 opts : {
@@ -178,7 +178,7 @@ import { LogBase } from './LogBase.js';
178178 * @param {number } [spaces]
179179 * @returns {string }
180180 */
181- declare function toJson ( obj : object , serializers : object , spaces ?: number | undefined ) : string ;
181+ declare function toJson ( obj : object , serializers : object , spaces ?: number ) : string ;
182182import { Sonic } from './Sonic.js' ;
183183declare const isDevEnv : boolean ;
184184import { errSerializer } from './serializers/index.js' ;
0 commit comments