0.1.7 • Published 2 years ago

@pretty-ts-errors/formatter v0.1.7

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Pretty TypeScript Error formatter

The formatting package of pretty-ts-errors

Usage

import { formatDiagnosticMessage } from "@pretty-ts-errors/formatter";

function codeBlock(code: string, language?: string, multiLine?: boolean) {
  return `\`\`\`${language}
${code}
\`\`\`
`;
}

formatDiagnosticMessage(
  `Type 'string' is not assignable to type 'number'.`,
  codeBlock
);
0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago