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

x/rimbu/core/main/exports.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@1.0.3/core/main/exports.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