Skip to content

Commit

Permalink
Utility Types: Parameters & ReturnType with overloads (#2939)
Browse files Browse the repository at this point in the history
Co-authored-by: Jake Bailey <[email protected]>
  • Loading branch information
ikonst and jakebailey authored Sep 8, 2023
1 parent ac040af commit 5329034
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/documentation/copy/en/reference/Utility Types.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 5329034

Please sign in to comment.