Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/tpy/src/types/util.d.ts>Unpacked

🔑 A strongly typed Pylon API client.
Latest
type alias Unpacked
import { type Unpacked } from "https://deno.land/x/tpy@v1.0.0-RC/src/types/util.d.ts";

Extracts objects inside an array (if it is one) and forms a union for each of those elements.

Type Parameters

T

The type to be extracted from an array.

definition: T extends (infer U)[] ? U : T