Skip to content

Commit ddb7cbd

Browse files
committed
feat: export validation artifacts
1 parent 245d4a0 commit ddb7cbd

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/morphism.ts

+6-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ import { Schema, StrictSchema, Constructable, SourceFromSchema, Mapper, Destinat
66
import { MorphismSchemaTree, createSchema, SchemaOptions } from './MorphismTree';
77
import { MorphismRegistry, IMorphismRegistry } from './MorphismRegistry';
88
import { decorator } from './MorphismDecorator';
9-
import { Reporter, reporter as defaultReporter, Formatter, targetHasErrors, ValidationErrors } from './validation/reporter';
9+
import { Reporter, reporter as defaultReporter, Formatter, targetHasErrors, ValidationErrors, Validation } from './validation/reporter';
10+
import { BaseValidator, Rule } from './validation/Validation';
1011

1112
/**
1213
* Low Level transformer function.
@@ -246,6 +247,9 @@ export {
246247
SCHEMA_OPTIONS_SYMBOL,
247248
Reporter,
248249
defaultReporter as reporter,
249-
Formatter
250+
Formatter,
251+
Validation,
252+
BaseValidator,
253+
Rule
250254
};
251255
export default Morphism;

0 commit comments

Comments
 (0)