Skip to content

Commit

Permalink
feat(types): add validation context interface
Browse files Browse the repository at this point in the history
  • Loading branch information
TomokiMiyauci committed May 26, 2023
1 parent 3c41c4b commit c95f89e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ export class ValidationFailure {
}
}

export interface ValidationContext<In = unknown> {
/** The actual input. */
input: In;
}

export interface Transformer<in In = unknown, out Out = In> {
transform: (input: In) => Out;
}
Expand Down

0 comments on commit c95f89e

Please sign in to comment.