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

x/deepmergets/dist/deno/types/utils.ts>EveryIsSet

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

Returns whether or not all the given types are sets.

Note: This may also return true if all are maps.

Type Parameters

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