Skip to content

Fix typo in ElysiaTypeCustomErrorCallback: valdation to validation#1531

Merged
SaltyAom merged 1 commit intoelysiajs:mainfrom
davipatricio:main
Nov 9, 2025
Merged

Fix typo in ElysiaTypeCustomErrorCallback: valdation to validation#1531
SaltyAom merged 1 commit intoelysiajs:mainfrom
davipatricio:main

Conversation

@davipatricio
Copy link
Contributor

@davipatricio davipatricio commented Nov 6, 2025

Summary by CodeRabbit

  • Bug Fixes
    • Corrected spelling error in the error object type field from 'valdation' to 'validation', ensuring proper error type matching.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Nov 6, 2025

Walkthrough

A typographical error in the ElysiaTypeCustomErrorCallback error discriminant field was corrected from 'valdation' to 'validation' in the type system definitions, affecting the literal type constraint for error object distinction.

Changes

Cohort / File(s) Summary
Type definition typo fix
src/type-system/types.ts
Corrected discriminant type field from 'valdation' to 'validation' in ElysiaTypeCustomErrorCallback interface

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~1 minute

Poem

A typo hopped away today,
'Valdation' fled without delay,
Now 'validation' stands up right,
The rabbit fixed the type's small blight! 🐰✨

Pre-merge checks and finishing touches

✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title directly and accurately describes the main change: fixing a typo from 'valdation' to 'validation' in ElysiaTypeCustomErrorCallback.
✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@davipatricio davipatricio changed the title fix mistake for type invalidation Fix typo in ElysiaTypeCustomErrorCallback: valdation to validation Nov 6, 2025
@SaltyAom SaltyAom merged commit 95277d7 into elysiajs:main Nov 9, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants