~/talk

Live Coding: Eliminating Redundant Runtime Checks with Config as Code&Type in TypeScript

watch on portal.gitnation.org ↗https://portal.gitnation.org/contents/live-coding-eliminating-redundant-runtime-checks-with-config-as-codeandtype-in-typescript
Talkat JSNation 2025 · 2025-06-12..06-16· [typescript, developer-experience]

Shows how to treat runtime configuration as typed code in TypeScript to move validation to build time: uses an Express example that fetches products per market, defines a repository-style config of markets, sellers and locales, derives TypeScript types from that config, and uses those types to validate market keys, seller locales and product routing so many redundant runtime checks can be removed and branches get early feedback during development and testing.

AI-written summary · about

~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.