import tc from 'turbocolor';
import { SerializedTimings } from '../../../src/rollup/types';

export function printTimings(timings: SerializedTimings) {
	Object.keys(timings).forEach(label => {
		const color =
			label[0] === '#' ? (label[1] !== '#' ? tc.underline : tc.bold) : (text: string) => text;
		console.info(color(`${label}: ${timings[label].toFixed(0)}ms`));
	});
}

import tc from 'turbocolor';
import { SerializedTimings } from '../../../src/rollup/types';

export function printTimings(timings: SerializedTimings) {
	Object.keys(timings).forEach(label => {
		let color = tc;
		if (label[0] === '#') {
			color = color.bold;
			if (label[1] !== '#') {
				color = color.underline;
			}
		}
		console.info(color(`${label}: ${timings[label].toFixed(0)}ms`));
	});
}

--- 
+++ 
@@ -3,13 +3,8 @@
 
 export function printTimings(timings: SerializedTimings) {
 	Object.keys(timings).forEach(label => {
-		let color = tc;
-		if (label[0] === '#') {
-			color = color.bold;
-			if (label[1] !== '#') {
-				color = color.underline;
-			}
-		}
+		const color =
+			label[0] === '#' ? (label[1] !== '#' ? tc.underline : tc.bold) : (text: string) => text;
 		console.info(color(`${label}: ${timings[label].toFixed(0)}ms`));
 	});
 }
Fix typings for turbo color
