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

x/rimbu/core/main/exports.ts>Deep.Path.Result

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

Type Aliases

Determines the result type for an array of tokens representing subpaths in type T.

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

Converts a path string into separate tokens in a string array.

type alias Deep.Path.Result
import { type Deep } from "https://deno.land/x/rimbu@1.0.3/core/main/exports.ts";
const { Result } = Deep.Path;

The result type when selecting from object type T a path with type P.

Examples

Example 1

let r!: Path.Result<{ a: { b: { c: number } } }, 'a.b'>;
// => type of r: { c: number }

Type Parameters

T
P extends string
definition: Path.Result.For<T, Path.Result.Tokenize<P>, false>