<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/a-proposal-for-type-syntax-in-javascript-wcyhqimxa" -->

---
title: A Proposal For Type Syntax in JavaScript | daily.dev
description: A proposal to bring optional and erasable type syntax to JavaScript. Because this new syntax wouldn’t change how surrounding code runs, it would effectively...
canonical: https://daily.dev/posts/a-proposal-for-type-syntax-in-javascript-wcyhqimxa
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: A Proposal For Type Syntax in JavaScript | daily.dev
og:description: A proposal to bring optional and erasable type syntax to JavaScript. Because this new syntax wouldn’t change how surrounding code runs, it would effectively...
og:url: https://daily.dev/posts/a-proposal-for-type-syntax-in-javascript-wcyhqimxa
og:image: https://api.daily.dev/og/posts/wCYHQiMxA.png
og:image:alt: A Proposal For Type Syntax in JavaScript
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# A Proposal For Type Syntax in JavaScript

**[DevBlogs](https://daily.dev/sources/devblogs)** · 6 min read · 104 upvotes · 6 comments

## Summary

A proposal to bring optional and erasable type syntax to JavaScript. Because this new syntax wouldn’t change how surrounding code runs, it would effectively act as comments. We think this has the potential to make TypeScript easier and faster to use for development at every scale. We’re hoping to bring it forward in a proposal to TC39.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://devblogs.microsoft.com/typescript/a-proposal-for-type-syntax-in-javascript>

## Community discussion

Top comments from developers on daily.dev.

**@crosche** · 3 upvotes

> I was just wondering today about why this isn't already a thing.

**@kkurko** · 1 upvotes

> The idea is great, but it will take a lot of time for developers start using this - we already have a huge gap in functionality between JS and TS and we can take a look at OOP example, this direction in developing in JS (latest standard features), but it cannot be compared to what we have in TS right now - I think we will have the same situation with types.
>
> But we need something to start from, so let's see what comes of it

**@ghalib\_ansari\_** · 0 upvotes

> noice

**@raulmarindev** · 0 upvotes

> Sooner or later something like this will happen. It's probably going to take a few years though. I'm looking forward to it 🚀

**@hellokevinvogel** · 0 upvotes

> https://betterprogramming.pub/how-microsoft-wants-to-destroy-typescript-1f1a53b18de6

## Similar posts on daily.dev

- [Don’t just attend KubeCon \+ CloudNativeCon, Merge Forward your experience\!](https://daily.dev/posts/don-t-just-attend-kubecon-cloudnativecon-merge-forward-your-experience--l0rpp73x8) · CNCF · 1 upvotes · 0 comments
- [Announcing H2 2026 KCDs](https://daily.dev/posts/announcing-h2-2026-kcds-m96goajm1) · CNCF · 1 upvotes · 0 comments
- [Two months of Open Community Groups](https://daily.dev/posts/two-months-of-open-community-groups-asf52zhbs) · CNCF · 0 upvotes · 0 comments
- [CNCF Unveils Schedule for KubeCon \+ CloudNativeCon Europe 2026](https://daily.dev/posts/cncf-unveils-schedule-for-kubecon-cloudnativecon-europe-2026-ikhcoa5cb) · CNCF · 2 upvotes · 0 comments
- [CNCF Debuts KubeCon \+ CloudNativeCon Japan 2026 Schedule](https://daily.dev/posts/cncf-debuts-kubecon-cloudnativecon-japan-2026-schedule-xp5pyudub) · CNCF · 1 upvotes · 0 comments

---

Tags: [#general-programming](https://daily.dev/tags/general-programming), [#javascript](https://daily.dev/tags/javascript), [#typescript](https://daily.dev/tags/typescript)

[View this post on daily.dev](https://daily.dev/posts/a-proposal-for-type-syntax-in-javascript-wcyhqimxa)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"A Proposal For Type Syntax in JavaScript","url":"https://daily.dev/posts/a-proposal-for-type-syntax-in-javascript-wcyhqimxa","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/a-proposal-for-type-syntax-in-javascript-wcyhqimxa"},"datePublished":"2022-03-09T18:52:11.149Z","dateModified":"2022-03-09T18:52:11.149Z","description":"A proposal to bring optional and erasable type syntax to JavaScript. Because this new syntax wouldn’t change how surrounding code runs, it would effectively...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/32daca8a45e2108c309272883863e549","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/32daca8a45e2108c309272883863e549","isAccessibleForFree":true,"articleSection":"DevBlogs","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"DevBlogs","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/8f68b453325f482ebeb73fb780092713","url":"https://daily.dev/sources/devblogs"},"commentCount":6,"discussionUrl":"https://daily.dev/posts/a-proposal-for-type-syntax-in-javascript-wcyhqimxa","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":104},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":6}],"keywords":"general-programming,javascript,typescript","timeRequired":"PT6M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"DevBlogs","item":"https://daily.dev/sources/devblogs"},{"@type":"ListItem","position":3,"name":"A Proposal For Type Syntax in JavaScript"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/a-proposal-for-type-syntax-in-javascript-wcyhqimxa","comment":[{"@type":"Comment","text":"I was just wondering today about why this isn’t already a thing.","datePublished":"2022-03-09T20:44:27.269Z","dateModified":"2022-03-09T20:45:13.996Z","url":"https://daily.dev/posts/wCYHQiMxA#c-wwGlY58zt","author":{"@type":"Person","name":"Cade Rosche","url":"https://daily.dev/crosche","image":"https://avatars.githubusercontent.com/u/60630493?v=4"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":3}},{"@type":"Comment","text":"The idea is great, but it will take a lot of time for developers start using this - we already have a huge gap in functionality between JS and TS and we can take a look at OOP example, this direction in developing in JS (latest standard features), but it cannot be compared to what we have in TS right now - I think we will have the same situation with types.\nBut we need something to start from, so let’s see what comes of it","datePublished":"2022-03-26T16:24:03.109Z","url":"https://daily.dev/posts/wCYHQiMxA#c-YTQYwKbEn","author":{"@type":"Person","name":"Kirill Kurko","url":"https://daily.dev/kkurko","image":"https://avatars.githubusercontent.com/u/58859242?v=4"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}},{"@type":"Comment","text":"noice","datePublished":"2022-03-10T07:24:15.759Z","url":"https://daily.dev/posts/wCYHQiMxA#c-njTugJn4x","author":{"@type":"Person","name":"Md Ghalib Nizamuddin Ansari","url":"https://daily.dev/ghalib_ansari_","image":"https://avatars.githubusercontent.com/u/20482230?v=4"}},{"@type":"Comment","text":"Sooner or later something like this will happen. It’s probably going to take a few years though. I’m looking forward to it 🚀","datePublished":"2022-03-12T11:25:50.783Z","url":"https://daily.dev/posts/wCYHQiMxA#c-R8_k8wkdI","author":{"@type":"Person","name":"Raúl Marín","url":"https://daily.dev/raulmarindev","image":"https://media.daily.dev/image/upload/s--LOBtNjbr--/f_auto,q_auto/v1704035607/avatars/avatar_24f3bf992b6e46c188b91e9cf4b7cd01"}},{"@type":"Comment","text":"https://betterprogramming.pub/how-microsoft-wants-to-destroy-typescript-1f1a53b18de6","datePublished":"2022-03-29T14:58:39.816Z","url":"https://daily.dev/posts/wCYHQiMxA#c-bUTlmqUsF","author":{"@type":"Person","name":"Kevin Vo","url":"https://daily.dev/hellokevinvogel","image":"https://lh3.googleusercontent.com/a-/AOh14Gg9gSOOVmoyD4VAJ86yLN0rCAM846m7_7imAtp5=s100"}}]}
```

