Skip to content

Add decorator to check if two properties match or property follows a custom condition.#2462

Open
MamadTvl wants to merge 2 commits intotypestack:developfrom
MamadTvl:develop
Open

Add decorator to check if two properties match or property follows a custom condition.#2462
MamadTvl wants to merge 2 commits intotypestack:developfrom
MamadTvl:develop

Conversation

@MamadTvl
Copy link

Description

This PR added DoesMatch decorator, a new property decorator that allows you to check if a given value follows a custom condition based on other properties. Useful for adding complex validation logic on classes.

Checklist

  • the pull request title describes what this PR does (not a vague title like Update index.md)
  • the pull request targets the default branch of the repository (develop)
  • the code follows the established code style of the repository
    • npm run prettier:check passes
    • npm run lint:check passes
  • tests are added for the changes I made (if any source code was modified)
  • documentation added or updated
  • I have run the project locally and verified that there are no errors

Fixes

fixes #486

@braaar
Copy link
Member

braaar commented Feb 25, 2026

I'm pretty sure you should be able to cover the same use cases with #1579

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

feat: add decorator to check if two properties match

2 participants