monocle-ts icon indicating copy to clipboard operation
monocle-ts copied to clipboard

No fromProp method in docs.

Open SimonAM opened this issue 3 years ago • 1 comments

📖 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

SimonAM avatar Dec 31 '21 11:12 SimonAM

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

kalda341 avatar Jan 08 '22 21:01 kalda341