Anton Stoychev
banner
stoychev.dev
Anton Stoychev
@stoychev.dev
✅️ Lead maintainer of breakproof.dev
🛠️ Frontend Infrastructure @ yotpo.com
Which 𝘀𝘁𝘆𝗹𝗲 makes it clear the function returns an array?

Why TS team uses `𝗧𝘆𝗽𝗲[]` for error msgs? Isn't the utility `𝗥𝗲𝗰𝗼𝗿𝗱<𝗧𝘆𝗽𝗲>` showing the preference? Isn't `𝗧𝘆𝗽𝗲[][]` sillier when compared to `𝗔𝗿𝗿𝗮𝘆<𝗔𝗿𝗿𝗮𝘆<𝗧𝘆𝗽𝗲>>`, especially if you read it out load.

I feel there is a clear winner?
July 20, 2025 at 9:52 AM
Moving codebases to newer or stricter TS in 1 go is often impossible (can't stop dev for so long, risk many bugs at once or know all the correct types)

In breakproof.dev we snapshot existing errors and fail only for new ones. Allows us to upgrade TS or make it stricter now, and gradually fix errors
June 8, 2025 at 6:13 AM
𝘀𝗸𝗶𝗽𝗟𝗶𝗯𝗖𝗵𝗲𝗰𝗸 is a 𝗧𝗦 config for skipping 𝗧𝗦 checks of libraries, 𝘳𝘪𝘨𝘩𝘵? 𝗡𝗼

It only skips checks for .𝗱.𝘁𝘀 files. If you develop a 𝗧𝗦 lib in your own monorepo used only by your projects, you still must run 𝘁𝘀𝗰 for your lib. Otherwise checking your project for TS errors will also show the lib errors
June 1, 2025 at 7:39 AM