Skip to content
This repository has been archived by the owner on Jul 16, 2024. It is now read-only.

require explicit type parameter for dx #430

Merged
merged 5 commits into from
Sep 19, 2023
Merged

Conversation

fubhy
Copy link
Member

@fubhy fubhy commented Sep 18, 2023

@tim-smart It's super easy to forget passing in the self-referencing S.Class<> type parameter (./cc @datner)

I'm not sure if there's a better way to solve this dx issue but this at least blows up if you forget to pass it ;-)

@changeset-bot
Copy link

changeset-bot bot commented Sep 18, 2023

🦋 Changeset detected

Latest commit: 5854173

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@effect/schema Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@fubhy fubhy marked this pull request as ready for review September 18, 2023 12:33
@datner
Copy link
Member

datner commented Sep 18, 2023

2 hours down the drain 🥲

@fubhy
Copy link
Member Author

fubhy commented Sep 18, 2023

🧸

@tim-smart
Copy link
Member

👍🏻

Could you do it for extend / transform too?

Then the usual docs and changeset :)

@tim-smart
Copy link
Member

Tested it out and added error messages. Let me know what you think.

@fubhy
Copy link
Member Author

fubhy commented Sep 19, 2023

Tested it out and added error messages. Let me know what you think.

Nice. Good idea!

@tim-smart tim-smart merged commit de5d649 into main Sep 19, 2023
1 check passed
@tim-smart tim-smart deleted the require-explicit-self-ref branch September 19, 2023 02:45
@github-actions github-actions bot mentioned this pull request Sep 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants