Skip to main content
Version: 5.x.x

TupleRestType


import { TupleRestType } from "@hyper-fetch/sockets"

Description

Defined in types/tuple.types.ts:1

Preview

type TupleRestType<T> = T extends [first: any, rest: infer  Rest] ? Rest extends any[] ? Rest : [] : [];

Structure

T extends [first: any, rest: infer Rest] ? (Rest extends any[] ? Rest : [undefined]) : [undefined]