Frontend Development
2 articles tagged Frontend Development by Darshan Panchasara.
Mock Service Worker (MSW): API Mocking for Tests and Local Development
How I use Mock Service Worker to mock APIs at the network level: Vitest setup, realistic handlers, five UI states to test, and browser mocking in dev.
TypeScript satisfies Operator: Type-Safe Config Without Losing Inference
Type annotations quietly widen your config objects. Learn how the TypeScript satisfies operator and as const give you strict checks and precise inferred types, with real patterns and common mistakes.