Skip to main content
Module

x/rimbu/mod.ts>Deep.Match.Entry

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

Determines the various allowed match types for given type T.

definition: IsAnyFunc<T> extends true ? T : IsPlainObj<T> extends true ? Match.WithResult<T, P, R, Match.Obj<T, C, P, R>> : IsArray<T> extends true ? Match.Arr<T, C, P, R> | Match.Entry<T[number & keyof T], C[number & keyof C], P, R>[] | Match.Func<T, P, R, Match.Arr<T, C, P, R> | Match.Entry<T[number & keyof T], C[number & keyof C], P, R>[]> : Match.WithResult<T, P, R, [K in keyof C]: C[K & keyof T]>