Skip to main content
Module

x/domain_functions/src/types.ts>Last

Decouple your business logic from your framework. With first-class type inference from end to end.
Go to Latest
type alias Last
import { type Last } from "https://deno.land/x/domain_functions@v2.6.0/src/types.ts";

Returns the last item of a tuple type.

Examples

type MyTuple = [string, number] type Result = Last // ^? number

Type Parameters

T extends readonly unknown[]
definition: T extends [...infer _I, infer L] ? L : never