ErrorType
type ErrorType = symbol
A symbol indicating the type of an error. The possible values are listed in the ErrorType namespace.
namespace ErrorType {
const Expected: symbol;
const Unexpected: symbol;
const Generic: symbol;
const Nested: symbol;
const Compound: symbol;
const Other: symbol;
}
NestedErrors must be of type ErrorType.Nested, while CompoundErrors must be of type ErrorType.Compound. All other error types are used for LocalErrors.