Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface PathLens<K>

Type parameters

  • K: ReadonlyArray<PropertyKey>

Hierarchy

Index

Properties

Methods

Properties

Readonly get

get: <R>(r: R) => GetPath<R, K>

Type declaration

Readonly update

update: { <R>(update: Arity1<GetPath<R, K>, GetPath<R, K>>, r: R): R; <B>(update: Arity1<B, B>): <R>(r: R) => R }

Type declaration

Methods

create

id

  • id<A>(): Lens<A, A>

prop

  • prop<A, K>(key: K): Lens<A, A[K]>

Generated using TypeDoc