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

x/rimbu/deep/internal.ts>Selector

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
namespace Selector
import { Selector } from "https://deno.land/x/rimbu@0.13.5/deep/internal.ts";

Type Aliases

Type defining the result type of applying the SL selector type to the T value type.

Type defining the shape of allowed selectors, used to improve compiler checking.

type alias Selector
import { type Selector } from "https://deno.land/x/rimbu@0.13.5/deep/internal.ts";

Type defining the allowed selectors on an object of type T. Selectors can be:

  • a path string into type T.
  • a function receiving a Protected version of type T, and returning an arbitrary value.
  • a tuple of Selectors for type T
  • an object where the property values are Selectors for type T.
definition:
| ((value: Protected<T>) => any)
| readonly Selector<T>[]
| { readonly [key: string | symbol]: Selector<T>; }