---
title: "TypeScript"
description: "TypeScript enables static type checking and safer development through configurable project settings."
date: "2025-10-02"
lastUpdated: "2026-03-28"
tags: ["typescript","tsconfig","frontend","development"]
canonical: "/learn/guides/project/tsconfig"
---

import { Code } from '@astrojs/starlight/components'
import Source from './tsconfig-base.jsonc?raw'
import PackageManagers from '~/components/PackageManagers.astro'

## Installation

To [install](https://www.typescriptlang.org/download):

<PackageManagers pkg="typescript" dev />

## Configuration

<Code code={Source} lang="json" title="tsconfig.json" wrap />

**Credits**: This is shamelessly sourced from **Matt Pocock** at [Total**TypeScript**](https://www.totaltypescript.com/tsconfig-cheat-sheet)

## Usage

To run the typescript compiler to typecheck a TS project without file transpilation:

```sh
# File: package.json

"typecheck": "tsc --noEmit",
```

## Documentation

- See the well crafted
  [documentation](https://www.typescriptlang.org/docs/handbook/utility-types.html)
  and its [Cheat Sheet](https://www.typescriptlang.org/cheatsheets)
- See Matt Pocock's great ["The TSConfig Cheat Sheet"](https://www.totaltypescript.com/tsconfig-cheat-sheet) article for more details.
- See Web Dev Simplified's [video](https://www.youtube.com/watch?v=35cESnxXH6o)
  on tsconfig.
