Microsoft/TypeScript

Suggestion: tsc should display a one line summary

Open

#14,211 建立於 2017年2月21日

在 GitHub 查看
 (10 留言) (12 反應) (0 負責人)TypeScript (48,455 star) (6,726 fork)batch import
Help WantedSuggestion

描述

Suggestion: tsc currently list the errors. Sometimes you want to see if the number of errors increases or decreases.

Proposition:

$ tsc
FooBar.tsx(66,59): error TS2339: Property 'query' does not exist on type 'Location'.
Hello.tsx(42,60): error TS2339: Property 'query' does not exist on type 'Location'.
dispatcher.ts(1,13): error TS6133: '_' is declared but never used.
World.test.ts(3,35): error TS7006: Parameter 'reason' implicitly has an 'any' type.
World.test.ts(3,43): error TS7006: Parameter 'promise' implicitly has an 'any' type.
World.test.ts(18,13): error TS6133: 'hello' is declared but never used.
mock.ts(194,23): error TS6133: 'ruleId' is declared but never used.
mock.ts(221,8): error TS2339: Property 'fetch' does not exist on type 'Window'.

Compilation done in 2.6s - 8 errors
$ tsc
[...]
Compilation aborted [...]

Could be the opportunity to display other informations (compilation time for example) given that it fits in a single line (72 columns).

(I'm not talking about --diagnostics)

貢獻者指南