Documented the 'ReportErrors' enum.

This commit is contained in:
Daniel Rosenwasser
2016-01-14 11:01:21 -08:00
parent 17ff54d09b
commit e8d4cf8231

View File

@@ -3,8 +3,20 @@
/* @internal */
namespace ts {
const enum ReportErrors {
None = 0,
/**
* Do not report errors at all.
*/
None,
/**
* Report errors in any fashion if any are encountered.
* This option implies that if an error has already been cached for a relationship
* between two types, it is okay to use the top-level error without elaboration.
*/
Basic,
/**
* Always force elaboration when comparing two types,
* even if the relation has been cached
*/
Elaborate,
}