---
title: "Discussion on \"Why setTimeout Isn't in ECMAScript & How to Fix TS Types\" | Hashnode"
description: "Discussion on \"Why setTimeout Isn't in ECMAScript & How to Fix TS Types\". Discover why setTimeout isn't in ECMA-262, why Node.js and browser return types differ, and how to fix TypeScript setTimeout type mismatch errors cleanly."
url: "https://hashnode.com/posts/why-settimeout-is-not-in-ecmascript/6ad8a5fe019dc2d6705f48fc"
---

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

Discussion

# [Why setTimeout Isn't in ECMAScript & How to Fix TS Types](https://doogal.dev/why-settimeout-is-not-in-ecmascript?utm_source=hashnode&utm_medium=feed)

Discover why setTimeout isn't in ECMA-262, why Node.js and browser return types differ, and how to fix TypeScript setTimeout type mismatch errors cleanly.

Oct 21 · 4 min read · doogal.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#typescript](https://hashnode.com/tag/typescript)
-   [#nodejs](https://hashnode.com/tag/nodejs)
-   [#webdev](https://hashnode.com/tag/webdev)

## Written by

[Doogal Simpson](https://hashnode.com/@doogal)

@doogal

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

"hey doogal, what is .... ?"

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
