DEV Community

TypeScript

Optional static type-checking for JavaScript.

Posts

đź‘‹ Sign in for the ability to sort posts by relevant, latest, or top.
Turn Missing UI States into a CI Gate with unhappypath

Turn Missing UI States into a CI Gate with unhappypath

Comments
6 min read
Stop chasing client assets: a TypeScript state machine for content handoffs

Stop chasing client assets: a TypeScript state machine for content handoffs

Comments
4 min read
Mean Pooling vs CLS: Watch Transformers.js Turn a Sentence Into an Embedding in Node

Mean Pooling vs CLS: Watch Transformers.js Turn a Sentence Into an Embedding in Node

Comments
9 min read
Sanity Studio editor experience: why editors avoid it and the fix

Sanity Studio editor experience: why editors avoid it and the fix

1
Comments
5 min read
Our reward label stopped quoting money, because the phone cannot know which currency the bill is in

Our reward label stopped quoting money, because the phone cannot know which currency the bill is in

Comments
4 min read
One boolean puts our whole API behind a 503, and three routes are allowlisted out of it

One boolean puts our whole API behind a 503, and three routes are allowlisted out of it

Comments
5 min read
Two routes read the same 226 JSON files, and Next.js only deployed one of them with the files

Two routes read the same 226 JSON files, and Next.js only deployed one of them with the files

Comments
5 min read
Our Ultimate plan is five seats and the owner is one of them, which is why a Pro owner's settings page reads "1 of 1 seat used"

Our Ultimate plan is five seats and the owner is one of them, which is why a Pro owner's settings page reads "1 of 1 seat used"

Comments
5 min read
Two URL spaces render from one type, and the ternary that tells them apart returns the same thing twice

Two URL spaces render from one type, and the ternary that tells them apart returns the same thing twice

Comments
6 min read
Our free week is one per account and one per card, and the card check is a search over Stripe metadata

Our free week is one per account and one per card, and the card check is a search over Stripe metadata

Comments
6 min read
One campaign type, two vocabularies, and 30 lines keeping 46 call sites from saying "businesss"

One campaign type, two vocabularies, and 30 lines keeping 46 call sites from saying "businesss"

Comments
5 min read
There are no Products and no Prices in our Stripe account, and every checkout line item is built from one 73-line file

There are no Products and no Prices in our Stripe account, and every checkout line item is built from one 73-line file

Comments
5 min read
One find, three channels, and only one of them is allowed to fail quietly

One find, three channels, and only one of them is allowed to fail quietly

Comments
6 min read
When the UI Knows More Than the Evidence

When the UI Knows More Than the Evidence

Comments
8 min read
A $` in our replacement string doubled a live article from 16,866 to 34,163 characters

A $` in our replacement string doubled a live article from 16,866 to 34,163 characters

Comments
9 min read
đź‘‹ Sign in for the ability to sort posts by relevant, latest, or top.