TypeScript Utility Types

Parameters<T> — function argument tuple

Parameters extracts the parameter tuple from a callable type, preserving optional and rest structure where applicable. For overloads, extraction uses the last signature rather than simulating overload resolution for a call. A generic function may yield unknown or its constraint instead of a concrete argument type. The utility does not inspect runtime arguments. Example output: "4:ready". Verified with strict TypeScript 5.8.3, ES2022 and Node.js 22.16.0. This utility affects static typing; no runtime validation or transformation is supplied by the type itself.

Formal Syntax & Structure

typescript syntaxtypescript
Parameters<T>

Parameters & Attributes

NameTypeDescription
TT extends (...args: any) => anyCallable type, typically obtained with typeof a function.

Working Example

Example Snippettypescript
function format(id: number, label?: string): string { return `${id}:${label ?? "new"}`; }const args: Parameters<typeof format> = [4, "ready"];console.log(format(...args));
TypeScript Reference