stackblitz - 1325818478675304448

stackblitz StackBlitz (@stackblitz) - November 9, 2020 at 11:12 PM

💡 TypeScript tip:

TypeScript infers array's type as an Array of the union of included types... which may not be precise enough.

If you want this value to be inferred as a Tuple instead, add as const pic.twitter.com/mLbG6yXuKX

https://user-images.githubusercontent.com/870029/208133398-a7d56091-baf8-452a-a452-7f184229a7fb.mp4

Download mp4

Tweet link

Thread by @stackblitz on Threadify Reader App

Last updated