diff --git a/src/index.ts b/src/index.ts index 29a8742..cd660ed 100644 --- a/src/index.ts +++ b/src/index.ts @@ -8,8 +8,11 @@ export { Workout, Interval, Comment } from "./ast"; export { Duration } from "./Duration"; export { Intensity, ConstantIntensity, RangeIntensity, FreeIntensity } from "./Intensity"; export { ZoneType, intensityValueToZoneType } from "./ZoneType"; -export { ParseError } from "./parser/ParseError"; export { SourceLocation } from "./parser/tokenizer"; +import { ParseError } from "./parser/ParseError"; +import { ValidationError } from "./parser/ValidationError"; +export type ZwiftoutException = ParseError | ValidationError; +export { ParseError, ValidationError }; // utils export { totalDuration } from "./stats/totalDuration";