Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/rambda/files/index.d.ts>lensPath

Faster and smaller alternative to Ramda
Latest
function lensPath
import { lensPath } from "https://deno.land/x/rambda@9.4.1/files/index.d.ts";

Type Parameters

S
optional
K0 extends keyof S = keyof S

Parameters

path: [K0]

Type Parameters

S
optional
K0 extends keyof S = keyof S
optional
K1 extends keyof S[K0] = keyof S[K0]

Parameters

path: [K0, K1]

Type Parameters

S
optional
K0 extends keyof S = keyof S
optional
K1 extends keyof S[K0] = keyof S[K0]
optional
K2 extends keyof S[K0][K1] = keyof S[K0][K1]

Parameters

path: [K0, K1, K2]

Type Parameters

S
optional
K0 extends keyof S = keyof S
optional
K1 extends keyof S[K0] = keyof S[K0]
optional
K2 extends keyof S[K0][K1] = keyof S[K0][K1]
optional
K3 extends keyof S[K0][K1][K2] = keyof S[K0][K1][K2]

Parameters

path:
[
K0,
K1,
K2,
K3,
]

Type Parameters

S
optional
K0 extends keyof S = keyof S
optional
K1 extends keyof S[K0] = keyof S[K0]
optional
K2 extends keyof S[K0][K1] = keyof S[K0][K1]
optional
K3 extends keyof S[K0][K1][K2] = keyof S[K0][K1][K2]
optional
K4 extends keyof S[K0][K1][K2][K3] = keyof S[K0][K1][K2][K3]

Parameters

path:
[
K0,
K1,
K2,
K3,
K4,
]

Type Parameters

S
optional
K0 extends keyof S = keyof S
optional
K1 extends keyof S[K0] = keyof S[K0]
optional
K2 extends keyof S[K0][K1] = keyof S[K0][K1]
optional
K3 extends keyof S[K0][K1][K2] = keyof S[K0][K1][K2]
optional
K4 extends keyof S[K0][K1][K2][K3] = keyof S[K0][K1][K2][K3]
optional
K5 extends keyof S[K0][K1][K2][K3][K4] = keyof S[K0][K1][K2][K3][K4]

Parameters

path:
[
K0,
K1,
K2,
K3,
K4,
K5,
]

Type Parameters

optional
S = any
optional
A = any

Parameters

path: Path