← Articles
SL

Sven Lindqvist

Author

TypeScript compiler enthusiast and tooling engineer at a Stockholm dev tools company. Wrote the ESLint plugin that enforces exhaustive discriminated union handling, now downloaded 200 K/month.

typescripttestingarchitectureapi

Articles by Sven Lindqvist(3)

Form validation at scale: why client-side checks are not the full story

Client-side form validation catches format errors early and improves user experience, but it cannot enforce business rules, authorization constraints, or uniqueness invariants. Understanding the validation layers and their responsibilities prevents both duplicate effort and dangerous gaps.

typescriptvalidationformsbackendsecurity

19 July 2026

Discriminated unions in production TypeScript: patterns that scale

Discriminated unions model state that cannot exist simultaneously — loading and data, success and error, authenticated and anonymous. The pattern eliminates entire classes of impossible state bugs and makes exhaustive handling of variants compiler-enforced.

typescripttype-safetydiscriminated-unionsfrontendbackend

19 July 2026

Sven Lindqvist — ANN Tech — ANN Tech