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

x/rimbu/deep/internal.ts>Deep.Selector

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

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 Deep.Selector
Re-export
import { type Deep } from "https://deno.land/x/rimbu@0.13.1/deep/internal.ts";
const { Selector } = Deep;

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>; }