Skip to content

Commit

Permalink
feat: export ValidationError class
Browse files Browse the repository at this point in the history
  • Loading branch information
ncpa0cpl committed Mar 9, 2023
1 parent 1540397 commit 6e2abac
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import {
} from "@Validation/create-validated-function";
import { createChecker, createValidator } from "@Validation/create-validator";
import { ensureDataType } from "@Validation/ensure-data-type";
import { ValidationError } from "@Validation/validation-error/validation-error";

const assertDataType = ensureDataType;
const Type = DataType;
Expand Down Expand Up @@ -57,6 +58,7 @@ export {
createTypeGuardedFunction,
createValidatedFunction,
createValidator,
ValidationError,
DataType,
Type,
ensureDataType,
Expand All @@ -79,6 +81,7 @@ export default {
createTypeGuardedFunction,
createValidatedFunction,
createValidator,
ValidationError,
DataType,
Type,
ensureDataType,
Expand Down

0 comments on commit 6e2abac

Please sign in to comment.