manager
manager copied to clipboard
refactor: N/A - Infer type for `value` to `number` in `expiry_year` validation
Description ๐
In the CreditCardSchema validation, the expiry_year field has a test to ensure the expiration year is 2 or 4 digits. The test function takes a value parameter, which is inferred to be a number type.
Changes ๐
- Modified file:
packages/validation/src/account.schema.ts - Change the parameter from
valuewith no type, intovalue: number.
Target release date ๐๏ธ
It's just a refactor, not critical.
Preview ๐ท
| Before | After |
|---|---|
![]() |
![]() |
How to test ๐งช
Prerequisites
(How to setup test environment)
- ...
- ...
Reproduction steps
(How to reproduce the issue, if applicable)
- ...
- ...
Verification steps
(How to verify changes)
- ...
- ...
As an Author I have considered ๐ค
Check all that apply
- [X] ๐ Doing a self review
- [X] โ Our contribution guidelines
- [X] ๐ค Splitting feature into small PRs
- [ ] โ Adding a changeset
- [ ] ๐งช Providing/Improving test coverage
- [ ] ๐ Removing all sensitive information from the code and PR description
- [ ] ๐ฉ Using a feature flag to protect the release
- [ ] ๐ฃ Providing comprehensive reproduction steps
- [ ] ๐ Providing or updating our documentation
- [ ] ๐ Scheduling a pair reviewing session
- [ ] ๐ฑ Providing mobile support
- [ ] โฟ Providing accessibility support

