# tsc

* By default `tsc` is only used for type-checking and to generate `.d.ts` files. Compilation is done by `swc`.

> A `tsconfig.json` is required for you to have at your project's root folder. `mhy` will create one if it doesn't exists yet.

## Default command

```bash
tsc --project ./tsconfig.json
```

## CLI Options

<https://www.typescriptlang.org/docs/handbook/compiler-options.html>

## Examples

### Default CLI

```bash
mhy tsc
```

### With watcher

```bash
mhy tsc -w
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://mhy.js.org/tools/processes/tsc.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
