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

x/deepmergets/src/types/utils.ts>EveryIsMap

Deeply merge 2 or more objects respecting type information.
Go to Latest
type alias EveryIsMap
import { type EveryIsMap } from "https://deno.land/x/deepmergets@v7.1.0/src/types/utils.ts";

Returns whether or not all the given types are maps.

Type Parameters

Ts extends ReadonlyArray<unknown>
definition: Ts extends Readonly<readonly [infer T1]> ? IsMap<T1> : Ts extends readonly [infer Head, ...infer Rest] ? IsMap<Head> extends true ? Rest extends readonly [unknown, ...ReadonlyArray<unknown>] ? EveryIsMap<Rest> : false : false : false