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

x/rimbu/core/mod.ts>Deep.Path.Internal.NonOptional

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

Determines the allowed paths into a non-optional value of type T.

Type Parameters

T
Write extends boolean
Maybe extends boolean
definition: Tuple.IsTuple<T> extends true ? Path.Internal.Tup<T, Write, Maybe> : T extends readonly any[] ? Write extends false ? Path.Internal.Arr<T> : never : IsPlainObj<T> extends true ? Path.Internal.Obj<T, Write, Maybe> : never