---
title: "Discussion on \"The difference between \"any\" , \"unknown\" and  \"never\" in typescript\" | Hashnode"
description: "Discussion on \"The difference between \"any\" , \"unknown\" and  \"never\" in typescript\". how and when to use the any , unknown and never types in your typescript code"
url: "https://hashnode.com/posts/the-difference-between-any-unknown-and-never-in-typescript/650b726bbdd5393f02fb0a44"
---

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

Discussion

# [The difference between "any" , "unknown" and "never" in typescript](https://rahimdev.hashnode.dev/the-difference-between-any-unknown-and-never-in-typescript?utm_source=hashnode&utm_medium=feed)

how and when to use the any , unknown and never types in your typescript code

Sep 20, 2023 · 4 min read · rahimdev.hashnode.dev  
Read the article

-   [#typescript](https://hashnode.com/tag/typescript)
-   [#any-vs-never-vs-unknown-in-typescript](https://hashnode.com/tag/any-vs-never-vs-unknown-in-typescript)
-   [#typescript-mistakes](https://hashnode.com/tag/typescript-mistakes)
-   [#typescript-types](https://hashnode.com/tag/typescript-types)
-   [#mistakes-in-typescript](https://hashnode.com/tag/mistakes-in-typescript)

## Written by

[Rahim](https://hashnode.com/@rahimDev)

@rahimDev

  
[View profile](https://hashnode.com/@rahimDev)

I write articles about Full Stack Web development

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
