Skip to main content
Module

x/rimbu/deep/mod.ts>Selector.Shape

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
type alias Selector.Shape
import { type Selector } from "https://deno.land/x/rimbu@0.14.0/deep/mod.ts";
const { Shape } = 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
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