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

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

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

Perfrom a transpose operation on a 2D tuple.

definition: T extends readonly [...(readonly [...unknown[]])] ? T extends readonly [] ? [] : T extends readonly [infer X extends ReadonlyArray<unknown>] ? TransposeTupleSimpleCase<X> : T extends readonly [infer X extends ReadonlyArray<unknown>, ...infer XS extends ReadonlyArray<ReadonlyArray<unknown>>] ? PrependCol<X, TransposeTuple<XS>> : T : never