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

Spread doesn't allow to pass a narrower type to a wider one #291

Open
velialiev opened this issue Aug 2, 2023 · 2 comments
Open

Spread doesn't allow to pass a narrower type to a wider one #291

velialiev opened this issue Aug 2, 2023 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@velialiev
Copy link
Contributor

velialiev commented Aug 2, 2023

Current behavior:

Spread allows to pass only exact type and thus brokes typescript type system

Expected behavior:

Narrower type must always be allowed to pass to a wider one

Demo:

https://stackblitz.com/edit/effector-vite-react-template-kyxaio?file=src/model.ts

@stackblitz
Copy link

stackblitz bot commented Aug 2, 2023

@sergeysova sergeysova added the bug Something isn't working label Jan 31, 2024
@sergeysova
Copy link
Member

sergeysova commented Oct 9, 2024

@velialiev Please, check this issue fixed in https://github.com/effector/patronum/releases/tag/v2.3.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants