Skip to content
MW wattsup.dev
HomeJournalSnippetsUses Contact

Code library

Snippets

Reusable code snippets and solutions to common problems.

Filter:
typescript
6 months ago

TypeScript - Generic Class with Constraints

Generic repository pattern with type constraints and inference

View snippet
typescript
6 months ago

TypeScript - Utility Type Helpers

Advanced utility types for flexible type transformations

View snippet
typescript
6 months ago

TypeScript - Advanced Type Guards

Type predicates and guards for runtime type safety

View snippet
vuetypescript
6 months ago

Nuxt 4 - Plugin with Auto-imports

Global API client plugin with authentication and error handling

View snippet
vuetypescript
6 months ago

Nuxt 4 - Server API Route with Validation

Complete server route with validation, auth, and error handling

View snippet
vuetypescript
6 months ago

Nuxt 4 - Auto-imported Composable

Reusable composable pattern with state management and error handling

View snippet
MW wattsup.dev

Tech Lead specialising in Laravel, Vue, Nuxt, and AWS. Building scalable applications and leading development teams.

Explore

  • Home
  • Journal
  • Snippets
  • Uses
  • Contact

Get in touch

  • Start a conversation
Let's talk

© 2026 Michael Watts. All rights reserved.

Cookie Policy •

Crafted with care.