import { type Last } from "https://deno.land/x/domain_functions@v3.0.0/src/index.ts";
Returns the last item of a tuple type.
Examples
type MyTuple = [string, number]
type Result = Last
// ^? number
type MyTuple = [string, number] type Result = Last // ^? number
definition: T extends [...infer _I, infer L] ? L : never