Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface PropLens<K>

Type parameters

  • K: PropertyKey

Hierarchy

Index

Properties

Methods

Properties

Readonly get

get: <R>(r: R) => R[K]

Type declaration

    • <R>(r: R): R[K]
    • Type parameters

      Parameters

      • r: R

      Returns R[K]

Readonly update

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

Type declaration

    • <B, R>(update: Arity1<B, B>, r: R): R
    • <B>(update: Arity1<B, B>): <R>(r: R) => R
    • Type parameters

      Parameters

      Returns R

    • Type parameters

      • B

      Parameters

      Returns <R>(r: R) => R

        • <R>(r: R): R
        • Type parameters

          Parameters

          • r: R

          Returns R

Methods

create

id

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

prop

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

Generated using TypeDoc