<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Discriminated-Unions on Coding Fox</title>
    <link>https://codingfox.dev/tags/discriminated-unions/</link>
    <description>Recent content in Discriminated-Unions on Coding Fox</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Tue, 14 Jul 2026 00:00:00 +0200</lastBuildDate>
    <atom:link href="https://codingfox.dev/tags/discriminated-unions/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Making Impossible States Impossible with TypeScript Conditional Types</title>
      <link>https://codingfox.dev/post/typescript-conditional-types/</link>
      <pubDate>Tue, 14 Jul 2026 00:00:00 +0200</pubDate>
      <guid>https://codingfox.dev/post/typescript-conditional-types/</guid>
      <description>&lt;p&gt;TypeScript is often introduced as a way to add static types to JavaScript. But its real power becomes visible when we stop describing only the shape of data and start modeling relationships between data.&lt;/p&gt;&#xA;&lt;p&gt;A common challenge in software development is that some values are not independent. One value determines which other values are valid.&lt;/p&gt;&#xA;&lt;p&gt;TypeScript can help us express these relationships directly in the type system — and prevent invalid states before our code ever runs.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
