Skip to content

Commit

Permalink
Merge pull request #124 from nobrainr/fix/export-validation-object
Browse files Browse the repository at this point in the history
fix: expose Validation object instead of Validation interface
  • Loading branch information
emyann authored Sep 1, 2019
2 parents 2979a94 + 45c8eec commit 9b72ae5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
12 changes: 10 additions & 2 deletions src/morphism.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
import Morphism, { StrictSchema, morphism, Schema, createSchema, SchemaOptions, SCHEMA_OPTIONS_SYMBOL, reporter } from './morphism';
import Morphism, {
StrictSchema,
morphism,
Schema,
createSchema,
SchemaOptions,
SCHEMA_OPTIONS_SYMBOL,
reporter,
Validation
} from './morphism';
import { User, MockData } from './utils-test';
import { ActionSelector, ActionAggregator } from './types';
import { Validation } from './validation/Validation';
import { defaultFormatter, ValidationError } from './validation/reporter';

describe('Morphism', () => {
Expand Down
4 changes: 2 additions & 2 deletions src/morphism.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import { Schema, StrictSchema, Constructable, SourceFromSchema, Mapper, Destinat
import { MorphismSchemaTree, createSchema, SchemaOptions } from './MorphismTree';
import { MorphismRegistry, IMorphismRegistry } from './MorphismRegistry';
import { decorator } from './MorphismDecorator';
import { Reporter, reporter as defaultReporter, Formatter, targetHasErrors, ValidationErrors, Validation } from './validation/reporter';
import { BaseValidator, Rule } from './validation/Validation';
import { Reporter, reporter as defaultReporter, Formatter, targetHasErrors, ValidationErrors } from './validation/reporter';
import { BaseValidator, Rule, Validation } from './validation/Validation';

/**
* Low Level transformer function.
Expand Down

0 comments on commit 9b72ae5

Please sign in to comment.