Export also ValidationError & combined exception union
This commit is contained in:
parent
effa11ad75
commit
7b30277143
|
|
@ -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";
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue