Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
timotheeguerin committed Nov 15, 2023
1 parent 149e085 commit eb914e4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/tools/compare/src/printer.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import chalk from "chalk";
import chalk, { ChalkInstance } from "chalk";
import { CompareMessage, MessageType } from "./comparers";

interface MessageVisual {
prefix: string;
color: chalk.ChalkFunction;
prefixColor: chalk.ChalkFunction;
color: ChalkInstance;
prefixColor: ChalkInstance;
}

function getMessageVisual(messageType: MessageType): MessageVisual {
let prefix = "•";
let color: chalk.ChalkFunction = chalk;
let prefixColor: chalk.ChalkFunction | undefined;
let color: ChalkInstance = chalk;
let prefixColor: ChalkInstance | undefined;

switch (messageType) {
case MessageType.Added:
Expand Down

0 comments on commit eb914e4

Please sign in to comment.