Skip to content

Commit

Permalink
reexport decodeerror
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc Coquand committed Aug 25, 2020
1 parent 3d4b12f commit eccc73d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const isInteger = (n: number): boolean => Math.floor(n) === n && n !== Infinity;
const isStringNumber = (n: string): boolean =>
n.length !== 0 && n.match(/^[+-]?\d+(\.\d+)?$/) !== null;

export { DecodeError };
export class ValidationFailedError extends Error {
public error: DecodeError;
constructor(error: DecodeError) {
Expand Down

0 comments on commit eccc73d

Please sign in to comment.