Skip to main content
Module

x/rimbu/core/mod.ts>Deep.Path.Result.Part

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
type alias Deep.Path.Result.Part
import { type Deep } from "https://deno.land/x/rimbu@0.14.0/core/mod.ts";
const { Part } = Deep.Path.Result;

Determines the result of getting the property/index K from type T, taking into account that the value may be optional.

Type Parameters

T
K
Maybe extends boolean
definition: IsArray<T> extends true ? Path.Internal.MaybeValue<T[K & keyof T], Tuple.IsTuple<T> extends true ? Maybe : true> : Path.Internal.MaybeValue<T[K & keyof T], Maybe>