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

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

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

Is the type a tuple?

Type Parameters

T extends ReadonlyArray<unknown>
definition: T extends readonly [] ? true : T extends readonly [unknown, ...ReadonlyArray<unknown>] ? true : false