Skip to main content
Module

x/rimbu/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.1/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