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

Accept plain functions in applySchema and deprecates withSchema #164

Merged
merged 6 commits into from
Jul 15, 2024

Conversation

gustavoguichard
Copy link
Collaborator

@gustavoguichard gustavoguichard commented Jul 15, 2024

With these changes I was able to replace every occurrence of withSchema with applySchema and the tests are passing.
Now applySchema accepts plain functions and infers the types of the function's parameters.

I also deprecated withSchema and updated docs and examples to omit its usage.

This should solve #163

It also closes the latest remaining task of #155 =D

Copy link
Contributor

@diogob diogob left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@gustavoguichard gustavoguichard merged commit 6a13c2a into main Jul 15, 2024
1 check passed
@gustavoguichard gustavoguichard deleted the apply-schema-to-plain-functions branch July 15, 2024 17:13
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