From 5329034838ebda472e0511ae0cf2d006ab358020 Mon Sep 17 00:00:00 2001 From: Ilya Priven Date: Fri, 8 Sep 2023 14:07:17 -0400 Subject: [PATCH] Utility Types: Parameters & ReturnType with overloads (#2939) Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com> --- packages/documentation/copy/en/reference/Utility Types.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/documentation/copy/en/reference/Utility Types.md b/packages/documentation/copy/en/reference/Utility Types.md index c99403364725..dc4800115283 100644 --- a/packages/documentation/copy/en/reference/Utility Types.md +++ b/packages/documentation/copy/en/reference/Utility Types.md @@ -320,6 +320,8 @@ Released: Constructs a tuple type from the types used in the parameters of a function type `Type`. +For overloaded functions, this will be the parameters of the _last_ signature; see [Inferring Within Conditional Types](/docs/handbook/2/conditional-types.html#inferring-within-conditional-types). + ##### Example ```ts twoslash @@ -389,6 +391,8 @@ Released: Constructs a type consisting of the return type of function `Type`. +For overloaded functions, this will be the return type of the _last_ signature; see [Inferring Within Conditional Types](/docs/handbook/2/conditional-types.html#inferring-within-conditional-types). + ##### Example ```ts twoslash