0.1.7 • Published 3 years ago

@pretty-ts-errors/formatter v0.1.7

Weekly downloads
-
License
MIT
Repository
github
Last release
3 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

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago