Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added a convenience is function for optional CasePathable values #204

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

HarshilShah
Copy link

This PR is aimed at improving ergonomics for is checks specifically in TCA. Destinations and other pieces of CasePathable state can often be optional in TCA, and so out of the box the CasePathable.is function requires either unwrapping the optional state or tacking on == true to compile. I defined this extension in my own codebase a while ago to make that syntax a bit nicer to read, so as I was copying it over to another project I thought it might be worth submitting for inclusion right in the library itself

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.

1 participant