<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/stop-using-as-in-typescript-try-satisfies--zjrcmneov" -->

---
title: Stop using "as" in TypeScript. Try "satisfies" | daily.dev
description: A comparison of TypeScript's `as` type assertion versus the `satisfies` operator, showing how `satisfies` validates an object against a type while preserving...
canonical: https://daily.dev/posts/stop-using-as-in-typescript-try-satisfies--zjrcmneov
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Stop using "as" in TypeScript. Try "satisfies" | daily.dev
og:description: A comparison of TypeScript's `as` type assertion versus the `satisfies` operator, showing how `satisfies` validates an object against a type while preserving...
og:url: https://daily.dev/posts/stop-using-as-in-typescript-try-satisfies--zjrcmneov
og:image: https://api.daily.dev/og/posts/ZJrCmNeoV.png
og:image:alt: Stop using "as" in TypeScript. Try "satisfies"
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.

# Stop using "as" in TypeScript. Try "satisfies"

**[Sandhya K](https://daily.dev/sources/f8a71aothmgqz4gvfzpti)** · [@sandhyak](https://daily.dev/sandhyak) · 1 min read · 130 upvotes · 19 comments

## Summary

A comparison of TypeScript's `as` type assertion versus the `satisfies` operator, showing how `satisfies` validates an object against a type while preserving its literal, narrower types. An example demonstrates that `as` causes TypeScript to widen properties to the union type (losing specificity), while `satisfies` retains the exact inferred types so methods like string or tuple operations work without additional casts. Requires TypeScript 4.9 or later.

## Content

`"as"` tells the compiler "trust me." `satisfies` says "check me, but keep what I wrote".

![image.png](https://media.daily.dev/image/upload/s--0s-NnhR5--/f_auto/v1790053385/ugc/content_e6b19d96-958e-4607-926e-a5da651174d1?_a=BAMAMicg0)

Same object, but `satisfies` checks that it matches the type without widening it, so you get autocomplete and safety without the casts.

Needs TypeScript 4.9+. Where do you still reach for "`as"`? 👇

## Community discussion

Top comments from developers on daily.dev.

**@master\_aless** · 10 upvotes

> My honest opinion, I shouldn't use `as` for typing, because it's kind of a shorcut just to say: "This variable behaves as this other one, or this set of types" that's it
>
> The code also looks terrible in terms of readibility
>
> Interfaces, types and satisfies do a better job

**@robert0615** · 9 upvotes

> This is a perfect visual explanation. I wish `satisfies` had been around when I first started learning TS. It would have saved me from so many unnecessary runtime errors caused by bad `as` casts!

**@hosseinkhalili92** · 5 upvotes

> thanks for the description, but remember `satisfies` isn't a replacement for `as`,they solve different problems.

**@ristotoldsep** · 1 upvotes

> “Check me, but keep what I wrote” is a surprisingly good pitch for `satisfies`.

**@snoupix** · 1 upvotes

> Agreed but worth noting that `satisfies` only validates and keeps the actual inferred type, whereas `as` **is** type casting.
> So in a function, with a returned plain object, the return type will be the _object literal_ unless you specify the function's return type but that's writing the type twice.

## Similar posts on daily.dev

- [TIL: \`satisfies\` is my favorite TypeScript keyword](https://daily.dev/posts/til-satisfies-is-my-favorite-typescript-keyword-mwwj6l0n8) · Hacker News · 4 upvotes · 0 comments
- [JavaScript’s Most Forgiving Syntaxes](https://daily.dev/posts/javascript-s-most-forgiving-syntaxes-dar9euvvn) · Medium · 0 upvotes · 0 comments
- [Stop Using TypeScript's Exclamation Mark](https://daily.dev/posts/stop-using-typescript-s-exclamation-mark-re1atfub4) · TypeScript.TV · 258 upvotes · 16 comments

---

Tags: [#typescript](https://daily.dev/tags/typescript)

[View this post on daily.dev](https://daily.dev/posts/stop-using-as-in-typescript-try-satisfies--zjrcmneov)

```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":"DiscussionForumPosting","mainEntityOfPage":"https://daily.dev/posts/stop-using-as-in-typescript-try-satisfies--zjrcmneov","headline":"Stop using \"as\" in TypeScript. Try \"satisfies\"","text":"A comparison of TypeScript's `as` type assertion versus the `satisfies` operator, showing how `satisfies` validates an object against a type while preserving its literal, narrower types. An example demonstrates that `as` causes TypeScript to widen properties to the union type (losing specificity), while `satisfies` retains the exact inferred types so methods like string or tuple operations work without additional casts. Requires TypeScript 4.9 or later.","url":"https://daily.dev/posts/stop-using-as-in-typescript-try-satisfies--zjrcmneov","datePublished":"2026-09-22T04:57:12.568Z","dateModified":"2026-09-22T05:03:50.957Z","author":{"@type":"Person","name":"Sandhya K","url":"https://daily.dev/sandhyak","image":"https://media.daily.dev/image/upload/s--SE6L2St6--/f_auto/v1788238316/avatars/avatar_F8a71aOthmGqz4gVFZpTi?_a=BAMAMicg0","description":"Full-stack AI Engineer","interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"EndorseAction"},"userInteractionCount":2340}},"interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":130},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":19}],"comment":[{"@type":"Comment","text":"My honest opinion, I shouldn’t use as for typing, because it’s kind of a shorcut just to say: “This variable behaves as this other one, or this set of types” that’s it\nThe code also looks terrible in terms of readibility\nInterfaces, types and satisfies do a better job","datePublished":"2026-09-27T14:11:36.427Z","url":"https://daily.dev/posts/ZJrCmNeoV#c-lr5I9LFcY","author":{"@type":"Person","name":"Jhon Alessandro Leon Valero","url":"https://daily.dev/master_aless","image":"https://media.daily.dev/image/upload/s--bybOiVRn--/f_auto,q_auto/v1/avatars/avatar_zddE8a745BVM3Kn4wxVFI"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":10}},{"@type":"Comment","text":"This is a perfect visual explanation. I wish satisfies had been around when I first started learning TS. It would have saved me from so many unnecessary runtime errors caused by bad as casts!","datePublished":"2026-09-26T16:40:38.537Z","url":"https://daily.dev/posts/ZJrCmNeoV#c-m5IqVmtOk","author":{"@type":"Person","name":"Robert","url":"https://daily.dev/robert0615","image":"https://media.daily.dev/image/upload/s--5lCRj4hv--/f_auto/v1790074917/avatars/avatar_mK1JHP9LsBbCZIpoqd96L?_a=BAMAMicg0"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":9}},{"@type":"Comment","text":"thanks for the description, but remember satisfies isn’t a replacement for as,they solve different problems.","datePublished":"2026-09-28T19:51:44.752Z","url":"https://daily.dev/posts/ZJrCmNeoV#c-tLhlrFQE1","author":{"@type":"Person","name":"Hossein Khalili","url":"https://daily.dev/hosseinkhalili92","image":"https://lh3.googleusercontent.com/a/ACg8ocK6E30BSi7U7Dn-EoJVWrvPEb43PjY2Ga2lrjbYfnC5ylxyvSw=s96-c"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":5}},{"@type":"Comment","text":"“Check me, but keep what I wrote” is a surprisingly good pitch for satisfies.","datePublished":"2026-09-29T10:35:41.504Z","url":"https://daily.dev/posts/ZJrCmNeoV#c-xMWu627BG","author":{"@type":"Person","name":"Risto Tõldsep","url":"https://daily.dev/ristotoldsep","image":"https://media.daily.dev/image/upload/s--i6RRoxB7--/f_auto,pg_1/v1794383659/avatars/avatar_ryDlbifZ1EuRuh3g51ryC?_a=BAMAMiiw0"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}},{"@type":"Comment","text":"Agreed but worth noting that satisfies only validates and keeps the actual inferred type, whereas as is type casting.\nSo in a function, with a returned plain object, the return type will be the object literal unless you specify the function’s return type but that’s writing the type twice.","datePublished":"2026-09-30T22:32:03.044Z","url":"https://daily.dev/posts/ZJrCmNeoV#c-WYPnPbT0l","author":{"@type":"Person","name":"Snoupix","url":"https://daily.dev/snoupix","image":"https://avatars.githubusercontent.com/u/35530306?v=4"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}}],"isPartOf":{"@type":"WebPage","url":"https://daily.dev/sources/f8a71aothmgqz4gvfzpti","name":"Sandhya K"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Sandhya K","item":"https://daily.dev/sources/f8a71aothmgqz4gvfzpti"},{"@type":"ListItem","position":3,"name":"Stop using \"as\" in TypeScript. Try \"satisfies\""}]}
```

