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: separate input and output types #155

Merged
merged 1 commit into from
Apr 8, 2023
Merged

feat: separate input and output types #155

merged 1 commit into from
Apr 8, 2023

Conversation

tjjfvi
Copy link
Owner

@tjjfvi tjjfvi commented Apr 8, 2023

This does two things:

  • allows us to have covariant and contravariant constraints, rather than always being invariant
  • allows e.g. $.array($.str) to be assignable to both Codec<string[]> and Codec<readonly string[]>

@tjjfvi tjjfvi requested a review from harrysolovay April 8, 2023 20:23
@tjjfvi tjjfvi merged commit 1c211ce into main Apr 8, 2023
@tjjfvi tjjfvi deleted the io branch April 8, 2023 21: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