satisfies in TypeScript 👀 Checks types but keeps literal values: const routes = { home: '/', user: '/user' } satisfies Record<string, string> ✅ Type validation ✅ routes.home stays '/' not string ✅ Better than 'as' casting
0
0
4
0
19
United States Trends
- 1. South Carolina 23.8K posts
- 2. Texas A&M 22.1K posts
- 3. Shane Beamer 2,866 posts
- 4. Sellers 13.3K posts
- 5. Marcel Reed 3,899 posts
- 6. Michigan 43.8K posts
- 7. Northwestern 6,367 posts
- 8. Underwood 3,619 posts
- 9. Sherrone Moore N/A
- 10. #GoBlue 3,159 posts
- 11. College Station 2,748 posts
- 12. Semaj Morgan N/A
- 13. Nyck Harbor 2,733 posts
- 14. Heisman 5,558 posts
- 15. Elko 3,567 posts
- 16. Andrew Marsh N/A
- 17. TAMU 6,714 posts
- 18. Navy 30.1K posts
- 19. #GigEm 1,583 posts
- 20. Narduzzi 1,424 posts
Loading...
Something went wrong.
Something went wrong.