Closed ninesunsabiu closed 1 year ago
It seems like there's an incompatibility issue between the Option
used in @effect/data, which is a dependency of @fp-ts/optic(^0.11.5), and the one used in my project's dependencies(^0.12.2).
Yeah, the @effect/data
dependency must be updated, working on it
v0.8.0 released
Wow, that was really efficient! I was planning on having a meal before submitting a PR.
Thank you very much for the surprises brought to me by the fp-ts series, which has helped me grow a lot.
Now I'm trying to use @effect/* and @fp-ts/optic. However, I've found two issues in the README.md, and I hope to get some answers.
First, in the "Getting started" section, the installation method mentioned
npm install @fp-ts/schema
may be a typo, and the correct one should benpm install @fp-ts/optic
.Second, the example code in the "Summary" section will result in a TypeScript error, which is quite serious. Specifically, it shows:
Here is minimal reproduction
However, I tried it in TypeScript playground and it works correctly.I am very confused.
Here is my environment: