---
title: "Conditional type"
description: "Conditional types let you create if-else logic in TypeScript, but at the type level."
dependencies: []
link: "https://www.typescriptlang.org/docs/handbook/2/conditional-types.html"
---
