@epikodelabs/streamix / src/public-api / LensValue
Type Alias: LensValue<T, P>
LensValue<
T,P> =Pextends readonly [infer Key,...(infer Rest)] ?Keyextends keyofNonNullable<T> ?LensValue<NonNullable<T>[Key],Rest> |OptionalAt<T> :unknown:Pextends readonly [] ?T:Pextends keyofNonNullable<T> ?NonNullable<T>[P] |OptionalAt<T> :unknown
Defined in: projects/libraries/streamix/src/lib/factories/lens.ts:20
Infers the selected value for a property or a literal tuple path.
Type Parameters
T
T
P
P