TypeScript satisfies Operator in Practice
The satisfies operator checks that an expression matches a type without widening the inferred type. const config = { theme: 'dark' } satisfies Config still infers 'dark' rather tha…
Read article →Notes on JavaScript, PHP, WordPress, design, performance, and the practical side of shipping better digital products.
Topics covered
The blog is designed to support both technical readers and clients who want clearer language around scope, quality, and implementation decisions.
The satisfies operator checks that an expression matches a type without widening the inferred type. const config = { theme: 'dark' } satisfies Config still infers 'dark' rather tha…
Read article →response.body is a ReadableStream. You can pipe it to TextDecoderStream or read it chunk-by-chunk with a reader to handle large or streaming responses.Server-sent JSON lines,…
Read article →color-mix(in oklch, var(--brand) 60%, white) produces a colour halfway between two colours in a perceptual space. It replaces a wall of design-token shades with one…
Read article →TanStack Query (formerly React Query) handles server state — fetching, caching, deduping, retrying, refetching on focus, and stale-while-revalidate — with hooks-shaped ergonomics.I…
Read article →Vite ships native ESM in dev and bundles with Rollup for production. Cold start is essentially instant on a typical project; HMR is sub-100ms.The configuration…
Read article →