Skip to main content
Module

x/rimbu/mod.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@0.14.0/mod.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@0.14.0/mod.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>