---
title: "Discussion on \"What’s the difference between never and void in TypeScript?\" | Hashnode"
description: "Discussion on \"What’s the difference between never and void in TypeScript?\". In TypeScript, both never and void represent situations where a function doesn't return anything, but they're used in different contexts.\nvoid: Think of void as the absence of a specific type. When a function returns void, it means it doesn't return ..."
url: "https://hashnode.com/posts/what-is-the-difference-between-never-and-void-in-typescript/663310ee5b96ad3df5931ac3"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [What’s the difference between never and void in TypeScript?](https://noyonrahman.hashnode.dev/what-is-the-difference-between-never-and-void-in-typescript?utm_source=hashnode&utm_medium=feed)

In TypeScript, both never and void represent situations where a function doesn't return anything, but they're used in different contexts. void: Think of void as the absence of a specific type. When a function returns void, it means it doesn't return ...

May 2, 2024 · 2 min read · noyonrahman.hashnode.dev  
Read the article

-   [#typescript](https://hashnode.com/tag/typescript)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#developer](https://hashnode.com/tag/developer)
-   [#programming-blogs](https://hashnode.com/tag/programming-blogs)
-   [#web-development](https://hashnode.com/tag/web-development)

## Written by

[Noyon Rahman](https://hashnode.com/@noyon-rahman)

@noyon-rahman · Dhaka, Bangladesh

  
[View profile](https://hashnode.com/@noyon-rahman)

Software Developer

I build things for the web!

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
