TypeScript for Frontend (Part 4): Strict Mode and Type Narrowing
How to enable and benefit from strict mode, and use type guards, assertions, and control-flow analysis to narrow types safely.
Read postHow to enable and benefit from strict mode, and use type guards, assertions, and control-flow analysis to narrow types safely.
Read postHow to use slots for flexible layout, render functions for dynamic UI, and provide/inject for dependency injection in Vue 3.
Read postA practical guide to Nuxt middleware (route and server), plugins (client vs server), and layers for reuse and structure in Nuxt 3.
Read postHow to implement role-based access and permission checks in Vue/Nuxt apps without trusting the client, with type-safe guards and API alignment.
Read postWhat LCP, INP, and CLS measure, how to improve them, and how to monitor and set budgets in production.
Read postWhen to use JWT vs session cookies, how to store tokens securely, and how to refresh and invalidate on the frontend.
Read postHow to fetch data in Nuxt with useAsyncData and useFetch—keys, deduplication, and getting SSR and hydration right.
Read postHow to design composables for reuse and testability—single responsibility, injected dependencies, and testing patterns.
Read postOrganize specs, debug failures, run Cypress in CI, and avoid common anti-patterns so your E2E suite stays fast and reliable.
Read postWhat Cypress is, why use it for E2E testing, how to install it, and how to run your first test in the browser.
Read post