<?xml version="1.0" encoding="UTF-8"?><oembed><type>video</type><version>1.0</version><html>&lt;iframe src=&quot;https://www.loom.com/embed/4c08c1b1a170468eaa27751d7504ee23&quot; frameborder=&quot;0&quot; width=&quot;1662&quot; height=&quot;1246&quot; webkitallowfullscreen mozallowfullscreen allowfullscreen&gt;&lt;/iframe&gt;</html><height>1246</height><width>1662</width><provider_name>Loom</provider_name><provider_url>https://www.loom.com</provider_url><thumbnail_height>1246</thumbnail_height><thumbnail_width>1662</thumbnail_width><thumbnail_url>https://cdn.loom.com/sessions/thumbnails/4c08c1b1a170468eaa27751d7504ee23-926e92e87577c3d1.gif</thumbnail_url><duration>188.534</duration><title>Simplifying Type Inference for Validators</title><description>This Loom explains a change to simplify TypeScript type inference for validators and processors by moving shared type-algebra utilities into validators. The author declares input and output types as tables and derives the corresponding types from the database utilities, then uses the public table name as the only required input to validators and processors. This allows the item processor input and output types to be deduced automatically, reducing the need to specify types in route calls. The main benefit is clearer code in routes and fewer lint issues, with no substantial functional change beyond the refactor.</description></oembed>