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

feat: adjust render types to be generic #278

Merged
merged 1 commit into from
Mar 16, 2024

Conversation

ninanator
Copy link
Contributor

What & Why

Adjust the types of render* functions to include a generic for data. This will allow developers to type their render functions and more safely guard their templates 💃

Proof

Not adding a type falls back to object

no-types-work

Adding a type allows you to enforce your will 🤖

types-work

@nebrelbug
Copy link
Collaborator

@ninanator thanks for the PR! I'll merge right now!

@nebrelbug nebrelbug merged commit 9d21224 into eta-dev:main Mar 16, 2024
2 of 3 checks passed
@nebrelbug
Copy link
Collaborator

nebrelbug commented Mar 16, 2024

@ninanator published in version 3.3.0 🚀

@ninanator ninanator deleted the feat/277-adjust-render-types branch March 16, 2024 16:21
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