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

x/rimbu/core/mod.ts>Deep.Selector.Shape

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
type alias Deep.Selector.Shape
import { type Deep } from "https://deno.land/x/rimbu@0.13.5/core/mod.ts";
const { Shape } = Deep.Selector;

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

definition: IsAnyFunc<SL> extends true ? SL : IsArray<SL> extends true ? readonly [...(SL extends readonly unknown[] ? SL : never)] : SL extends { readonly [key: string | number | symbol]: unknown; } ? readonly [K in keyof SL]: Selector.Shape<SL[K]> : SL