Skip to content

Commit

Permalink
chore(lib): export tuple
Browse files Browse the repository at this point in the history
  • Loading branch information
Kosai106 committed Nov 23, 2024
1 parent e073373 commit 512ccbb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/validathor/src/schemas/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ export { number } from './number'
export { object } from './object'
export { regex } from './regex'
export { string } from './string'
export { tuple } from './tuple'
2 changes: 1 addition & 1 deletion packages/validathor/src/schemas/tuple.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const tuple = <T extends Parser<unknown>[]>(
},
): Parser<T[]> => ({
name: 'tuple' as const,
parse: (value: unknown): T[] => {
parse: (value): T[] => {
assert(
Array.isArray(value),
new TypeError(message?.type_error || ERROR_CODES.ERR_TYP_0000.message()),
Expand Down

0 comments on commit 512ccbb

Please sign in to comment.