Syntax highlighter for TypeScript error messages
npm install ts-error-formatter```
npm install --save-dev ts-error-formatter
The errorFormatter can be used either stand alone or with fork-ts-checker-webpack-plugin.
There are two exports:
* errorFormatter: (msg: string) => string; forkTsCheckerFormatter: (options?: BabelCodeFrameOptions | undefined) => Formatter;
* The returned value will have console colored text
* fork-ts-checker-webpack-plugin
* This convenience method also adds additional Babel CodeFrame output which is the default formatter
To use the forkTsCheckerFormatter simply use it with the custom formatter option in your fork-ts-checker-webpack-plugin`'s config file.