How should this #typescript issue be properly titled? I (clearly) have trouble describing the problem:
https://t.co/XstL3j7IHQ
cc'ing big brain energy @quezak2@krzKaczor
Today I learned that if you don't want to emit internal types from a library, you can set `stripInternal` to true in TypeScript config and add a `@ internal` comment:
First participated in the release of [email protected] as contributor 🥳
typescript@^4.0.0, `StrictExtract`, `MergeN`, `IsTuple` improvement 🚀
https://t.co/OEjiUMetko
One small quality of life improvement for frontend devs in TypeScript 4.3: you can now jump into imported files TypeScript doesn’t understand, like CSS.
Check out our Release Candidate of TypeScript 4.3! We just published the RC and are looking for feedback on new features, faster --watch builds, and more. Give it a try!
https://t.co/GHwr5vtmjF
The external contributor @TypeScript PR which explores the stage 1 TC39 pipeline operator just got a fresh rebase and update
Playground: https://t.co/rfrLJHQEia
PR: https://t.co/WH9C3mGteq
Proposal: https://t.co/CW0MxOCg3v
Do you remember the difference between unknown and any in #typescript?
🥇 You can assign anything to unknown and any.
🥈 You can't assign unknow to anything except of unknow and any.
🥉 You can't access unknow properties (unlike any).
.@typescript community seems to love newer features that come with new TS versions. Here's a breakdown of downloads per version👇
🥇3.9 released 10 months ago (Inference imprv)
🥈4.1 current stable (Template Literal Types)
🥉4.0 released 6 months ago (Variadic Tuple Types)
Lately, I started digging deep into @github Actions. The way how most actions end up placing build artifacts on the default branch was driving me mad. In this article, I explain how we can use GitHub Actions to develop GitHub Actions and fix it!
👇👇👇
https://t.co/bJwXpYz31i
Lately, I started digging deep into @github Actions. The way how most actions end up placing build artifacts on the default branch was driving me mad. In this article, I explain how we can use GitHub Actions to develop GitHub Actions and fix it!
👇👇👇
https://t.co/bJwXpYz31i
🔔🎅🎄
I don’t want a lot for Christmas
There are just two things I need
Template string literal types (@MichalZalecki)
And a good assertion lib (@krzKaczor)
📅 December 22nd (Tuesday)
🕡 6:30 pm CET
https://t.co/e4dGqzuQRI
By default, TypeScript WON'T throw compilation errors on unreachable code 😱
You might want to tweak that! Just set `"allowUnreachableCode": false` in tsconfig.json
https://t.co/t0bE3Avf9G
Tip: make sure your declaration files are type-checked.
Compile-time errors in unchecked *d.ts files can hide real bugs and lead to painful debugging sessions.
Thread 🧵
Use auxiliary package.json to avoid "deep" import paths to your npm packages. This is a great solution if you want to clearly divine public/internal interface of your project.
h/t @PSzlachciak
👇👇👇