Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Note that references are not inherited #1306

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions pages/tutorials/tsconfig.json.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,8 @@ If you use an `import "foo"` statement, for instance, TypeScript may still look

## Configuration inheritance with `extends`

A `tsconfig.json` file can inherit configurations from another file using the `extends` property.
A `tsconfig.json` file can inherit partial configurations from another file using the `extends` property.
Currently, the only top-level property that is excluded from inheritance is `references`.

The `extends` is a top-level property in `tsconfig.json` (alongside `compilerOptions`, `files`, `include`, and `exclude`).
`extends`' value is a string containing a path to another configuration file to inherit from.
Expand All @@ -154,7 +155,7 @@ If a circularity is encountered, we report an error.

`files`, `include` and `exclude` from the inheriting config file *overwrite* those from the base config file.

All relative paths found in the configuration file will be resolved relative to the configuration file they originated in.
Properties with relative paths found in the configuration file, which aren't excluded from inheritance, will be resolved relative to the configuration file they originated in.

For example:

Expand Down