From 99e37cd2b3a22395847dced86222bb7dfc43628a Mon Sep 17 00:00:00 2001 From: adriancuadrado <29214635+adriancuadrado@users.noreply.github.com> Date: Sun, 22 Jun 2025 09:08:23 +0200 Subject: [PATCH] Update More on Functions.md `never` are also used in functions that take literally forever to finish. I thought it would be appropriate to add that case. --- packages/documentation/copy/en/handbook-v2/More on Functions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/documentation/copy/en/handbook-v2/More on Functions.md b/packages/documentation/copy/en/handbook-v2/More on Functions.md index 4d40edb5bada..ed29f1ddfea8 100644 --- a/packages/documentation/copy/en/handbook-v2/More on Functions.md +++ b/packages/documentation/copy/en/handbook-v2/More on Functions.md @@ -688,7 +688,7 @@ function fail(msg: string): never { ``` The `never` type represents values which are _never_ observed. -In a return type, this means that the function throws an exception or terminates execution of the program. +In a return type, this means that the function throws an exception, terminates execution of the program or takes literally forever to finish. `never` also appears when TypeScript determines there's nothing left in a union. pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy