gcanti / monocle-ts

Functional optics: a (partial) porting of Scala monocle
https://gcanti.github.io/monocle-ts/
MIT License
1.05k stars 52 forks source link

No fromProp method in docs. #174

Open SimonAM opened 2 years ago

SimonAM commented 2 years ago

📖 Documentation

The examples in the documentation refers to Lens.fromProp method. However, in the docs no such method exists.

https://gcanti.github.io/monocle-ts/modules/Lens.ts.html

kalda341 commented 2 years ago

It's a little confusing, but you're looking at the unstable API. What you're looking for in is in the index module:

https://gcanti.github.io/monocle-ts/modules/index.ts.html#fromprop-static-method