type AnyObject = { [ property ] : any ; } ; export let issueFormatter = ( ) => { return [ ] ; } ; if ( process . env . NODE_ENV !== 'production' ) { const issueValue = '%o' ; issueFormatter = ( message , object , highlight = { } , replacer = null , transform ) => { const issueArgs = [ ] ; let issueObject = { } ; for ( const key in object ) { const isIssue = key in highlight ; issueObject [ isIssue ? `%c${ key }%c` : key ] = isIssue ? issueValue : object [ key ] ; if ( isIssue ) { issueArgs . push ( 'font-weight: bold; text-decoration: underline' , 'font-weight: normal; text-decoration: none' , object [ key ] ) ; } } if ( transform ) { issueObject = transform ( issueObject ) ; } let block = JSON . stringify ( issueObject , replacer as any , 2 ) ; for ( const key in highlight ) { block = block . replace ( `  "%c${ key }%c": "${ issueValue }"` , `  %c"${ key }"%c: ${ issueValue }` ) ; } return [ `${ message }\n\n${ block }` , ... issueArgs ] ; } ; }