Skip to main content

parse_typescript_output

Function parse_typescript_output 

Source
pub fn parse_typescript_output(output: &str) -> Vec<CompilerError>
Expand description

Parse TypeScript compiler (tsc) output into CompilerError structs.

TypeScript error format: file.ts(line,col): error TSXXXX: message file.ts(line,col): warning TSXXXX: message

ยงExamples

test.ts(2,5): error TS1002: Unterminated string literal
another.ts(10,12): warning TS2304: Cannot find name 'foo'

This function is public for testing purposes.