import chalk from 'chalk' ; import { IncompatibleTypeDiff } from '../../diffs/IncompatibleTypeDiff' ; import { oneLine } from 'common-tags' ; import { prettyPrint } from './prettyPrint' ; const prettyPrintIncompatibleTypeDiff = function ( incompatibleTypeDiff , depth = 0 ) : string { return oneLine `
    ${ chalk . red ( prettyPrint ( incompatibleTypeDiff . actual , depth + 1 ) ) }
    ${ chalk . green ( prettyPrint ( incompatibleTypeDiff . expected , depth + 1 ) ) }
  ` ; } ; export { prettyPrintIncompatibleTypeDiff } ;