From e8d4cf82314e367a55310f8adcbd10131f62efb9 Mon Sep 17 00:00:00 2001 From: Daniel Rosenwasser Date: Thu, 14 Jan 2016 11:01:21 -0800 Subject: [PATCH] Documented the 'ReportErrors' enum. --- src/compiler/checker.ts | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 6414d4d87e1..4a73e071061 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -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, }