import { Deep } from "https://deno.land/x/rimbu@0.13.1/deep/index.ts";
const { Result } = Deep.Path;
Type Aliases
Determines the result type for an array of tokens representing subpaths in type | |
Determines the result of getting the property/index | |
Converts a path string into separate tokens in a string array. |
import { type Deep } from "https://deno.land/x/rimbu@0.13.1/deep/index.ts";
const { Result } = Deep.Path;
The result type when selecting from object type T a path with type P.
Examples
Example 1
Example 1
let r!: Path.Result<{ a: { b: { c: number } } }, 'a.b'>;
// => type of r: { c: number }
definition: Path.Result.For<T, Path.Result.Tokenize<P>, false>