---
title: "Variable type annotation"
description: "You can use a colon after a variable name to tells TypeScript what type the variable should be."
dependencies: []
link: "https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#type-annotations-on-variables"
---
