Skip to content

Commit

Permalink
chore(validathor): minor parser type improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
Kosai106 committed Jul 30, 2024
1 parent 142677c commit 831ebc3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/validathor/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export type Modifier<T> =
Custom<any> | Enumerator<T> | Min<T> | Max<T> | Email

// TODO: Improve the parser type to more accurately reflect the return type
export type Parser<T> = {
export type Parser<T, U = unknown> = {
name: string
parse: (input: unknown) => T
parse: (input: U) => T
}

0 comments on commit 831ebc3

Please sign in to comment.