Export also ValidationError & combined exception union

This commit is contained in:
Rene Saarsoo 2020-12-25 19:55:25 +02:00
parent effa11ad75
commit 7b30277143
1 changed files with 4 additions and 1 deletions

View File

@ -8,8 +8,11 @@ export { Workout, Interval, Comment } from "./ast";
export { Duration } from "./Duration"; export { Duration } from "./Duration";
export { Intensity, ConstantIntensity, RangeIntensity, FreeIntensity } from "./Intensity"; export { Intensity, ConstantIntensity, RangeIntensity, FreeIntensity } from "./Intensity";
export { ZoneType, intensityValueToZoneType } from "./ZoneType"; export { ZoneType, intensityValueToZoneType } from "./ZoneType";
export { ParseError } from "./parser/ParseError";
export { SourceLocation } from "./parser/tokenizer"; export { SourceLocation } from "./parser/tokenizer";
import { ParseError } from "./parser/ParseError";
import { ValidationError } from "./parser/ValidationError";
export type ZwiftoutException = ParseError | ValidationError;
export { ParseError, ValidationError };
// utils // utils
export { totalDuration } from "./stats/totalDuration"; export { totalDuration } from "./stats/totalDuration";