import { Path } from "https://deno.land/x/rimbu@0.13.5/deep/mod.ts";
const { Result } = 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. |
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 Path } from "https://deno.land/x/rimbu@0.13.5/deep/mod.ts";
const { Result } = 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>
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>