This commit is contained in:
@@ -39,16 +39,15 @@ export class LensImpl<in out A, in out ER = never, in out EW = never, in out RR
|
||||
|
||||
|
||||
/**
|
||||
* Checks whether a value implements `Lens`.
|
||||
*/
|
||||
/**
|
||||
* Determines whether a value implements the `Lens` interface.
|
||||
* Checks whether a value is a `Lens`.
|
||||
*/
|
||||
export const isLens = (u: unknown): u is Lens<unknown, unknown, unknown, unknown, unknown> => Predicate.hasProperty(u, LensTypeId)
|
||||
|
||||
|
||||
/**
|
||||
* Builds a `Lens` instance when you supply how to read the current value, observe changes, and apply transformations.
|
||||
* Creates a `Lens` by supplying how to read the current value, observe changes, and apply transformations.
|
||||
*
|
||||
* Either `modify` or `set` needs to be supplied.
|
||||
*/
|
||||
export const make = <A, ER, EW, RR, RW>(
|
||||
options: {
|
||||
|
||||
Reference in New Issue
Block a user