Skip to content

Commit

Permalink
Release 0.0.1-next.1
Browse files Browse the repository at this point in the history
  • Loading branch information
accuser committed Nov 9, 2024
1 parent cb9858b commit 35a38ed
Show file tree
Hide file tree
Showing 3 changed files with 420 additions and 0 deletions.
13 changes: 13 additions & 0 deletions dist/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
declare const VALIDATION_ERROR_NAME = "ValidationError";
interface ValidationError extends Error {
readonly name: typeof VALIDATION_ERROR_NAME;
readonly path: readonly string[];
readonly __validationError: unique symbol;
}

declare const schemaField: {
readonly valid: (value: unknown, field: unknown) => boolean;
readonly validate: (value: unknown, field: unknown, path?: string[]) => ValidationError[];
};

export { type ValidationError, schemaField as default };
Loading

0 comments on commit 35a38ed

Please sign in to comment.