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

Inferring Generic type from array of clocks #956

Open
velialiev opened this issue Aug 1, 2023 · 1 comment
Open

Inferring Generic type from array of clocks #956

velialiev opened this issue Aug 1, 2023 · 1 comment
Labels
bug Something isn't working typings Typescript public type definitions issues

Comments

@velialiev
Copy link

What is the current behavior:

Sample fn's payload arg fails to infer Generic type when using array of clocks

Please provide the steps to reproduce and if possible a minimal demo of the problem via https://share.effector.dev, https://codesandbox.io or similar

  1. Use sample
  2. Add two or more clocks whose value/payload is typed using Generic type
  3. Check the type of fn's payload arg

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

What is the expected behavior:

Fn's payload arg type should be the Generic type

Which versions of effector packages, and which browser and OS are affected by this issue? Did this work in previous versions of effector?:

Effector 22.8.6

@velialiev velialiev added bug Something isn't working needs triage labels Aug 1, 2023
@stackblitz
Copy link

stackblitz bot commented Aug 1, 2023

@zerobias zerobias added typings Typescript public type definitions issues and removed needs triage labels Aug 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working typings Typescript public type definitions issues
Projects
None yet
Development

No branches or pull requests

2 participants