Skip to content

allow to pass primitives to combine - #884

Merged
AlexandrHoroshih merged 2 commits into
effector:masterfrom
faustienf:fix-784-combine-typings
Apr 27, 2023
Merged

allow to pass primitives to combine#884
AlexandrHoroshih merged 2 commits into
effector:masterfrom
faustienf:fix-784-combine-typings

Conversation

@faustienf

@faustienf faustienf commented Apr 2, 2023

Copy link
Copy Markdown
Contributor

fixes #784

combine($store, 1, '2') should allow passing primitives, not only stores (docs)

image

image

@bolt-new-by-stackblitz

Copy link
Copy Markdown

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@netlify

netlify Bot commented Apr 2, 2023

Copy link
Copy Markdown

‼️ Deploy request for effector-docs rejected.

Name Link
🔨 Latest commit d78b790

@faustienf

faustienf commented Apr 2, 2023

Copy link
Copy Markdown
Contributor Author

I've found that the combine() tests don't have cases with primitives. I'll add a test case too.

p.s. done, added test case

@sergeysova sergeysova changed the title fix(784) combine typings, allow to pass primitives allow to pass primitives to combine Apr 3, 2023
@sergeysova sergeysova added the typings Typescript public type definitions issues label Apr 3, 2023
@AlexandrHoroshih
AlexandrHoroshih merged commit 66bdab5 into effector:master Apr 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

typings Typescript public type definitions issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ts error when using combine with primitive values

3 participants