CARVIEW |
Select Language
HTTP/2 200
date: Fri, 18 Jul 2025 07:56:18 GMT
content-type: text/html; charset=utf-8
cache-control: max-age=0, private, must-revalidate
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
link: ; rel=preload; as=fetch; crossorigin=use-credentials
referrer-policy: no-referrer-when-downgrade
server-timing: issue_layout-fragment;desc="issue_layout fragment";dur=277.526252,issue_conversation_content-fragment;desc="issue_conversation_content fragment";dur=848.244118,issue_conversation_sidebar-fragment;desc="issue_conversation_sidebar fragment";dur=47.423047,nginx;desc="NGINX";dur=0.780295,glb;desc="GLB";dur=95.320207
strict-transport-security: max-age=31536000; includeSubdomains; preload
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With, Accept,Accept-Encoding, Accept, X-Requested-With
x-content-type-options: nosniff
x-frame-options: deny
x-voltron-version: fd8fbbc
x-xss-protection: 0
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=OblQVeClC84PLy73ZvLkRpm8KgUjHADOzM%2BKAtycAC1aXfIpqXFxgSXIO%2F2a44zEMJm8iWrAJY0%2FzIVUrm3OVMhaCQiKpJFWFXNi3ZbI94QmqCtBl3N3K%2FtBGA2JeKA4BACIfLEyeUB3pnXbXsoSFigDoE13sEZG10KIckR6Yym63CThSk6GL7hYWpfT%2BPYr7lCW2NXnhzsnusxZ4liVCWWkkz9pqyKC%2B%2BDFzv9gNhqO7CcQ40iZdUrK5bBNjj9BLDp3yQphaYkxaD%2BFCD83NQ%3D%3D--mBEbD%2FIcQImqNp2Y--v3u7Wd6sueGHyOPAeQs%2BKQ%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.891734648.1752825377; Path=/; Domain=github.com; Expires=Sat, 18 Jul 2026 07:56:17 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Sat, 18 Jul 2026 07:56:17 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: AAB2:2137CF:A6578B:CB503D:6879FE21
Configuration Inheritance Β· Issue #9876 Β· microsoft/TypeScript Β· GitHub
No one assignedNo typeNo projectsNone yetNo branches or pull requests
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Closed
Labels
CommittedThe team has roadmapped this issueThe team has roadmapped this issueSuggestionAn idea for TypeScriptAn idea for TypeScript
Milestone
Description
Our friends from @angular asked for this feature while they were visiting last week, since they use a lot of configuration files internally.
Proposal
Add a new top-level (alongside compilerOptions, files, includes, and excludes) tsconfig
parameter - extends
(to steal the term from eslint
).
- Its value is a string or an array of strings which are interpreted as rooted or relative paths (so starting with either a drive root or
.
or..
) from the current tsconfig to other tsconfigs to inherit from - with or without a.json
extension, if no extension is provided, we first look for an extensionless file by the name, and failing that, add a .json extension and look for that. - If we add recommended or built-in configs to inherit from in the future, those will look like a module identifier, rather than a path (ie,
"typescript/strict"
). For now, non-relative, non-rooted paths will be an error. At present, built-in or shareable configs are not part of this proposal. - All configs your config inherits from are first parsed and resolved (thereby filling in anything they inherit), and then merged. Configs later in the list override the configuration provided by those earlier in the list. Configuration in the active config can override those provided by an inheriting config. If a circularity is encountered, we report an error.
- If any inherited configs we load have errors, we will report them.
- Top-level members other than
compilerOptions
are completely overridden by following definitions.compilerOptions
at the top level is merged (though its individual keys will still be overridden as though they were top-level keys). - Relative paths found in the configuration file will be resolved relative to the configuration file they originated in.
Examples
configs/base.json
:
{
"compilerOptions": {
"allowJs": true,
"noImplicitAny": true,
"strictNullChecks": true
}
}
configs/tests.json
:
{
"compilerOptions": {
"preserveConstEnums": true,
"stripComments": false,
"sourceMaps": true
},
"exclude": [
"../tests/baselines",
"../tests/scenarios"
],
"include": [
"../tests/**/*.ts"
]
}
tsconfig.json
:
{
"extends": "./configs/base",
"files": [
"main.ts",
"supplemental.ts"
]
}
tsconfig.nostrictnull.json
:
{
"extends": "./tsconfig"
"compilerOptions": {
"strictNullChecks": false
}
}
tsconfig.tests.json
:
{
"extends": ["./configs/tests", "./tsconfig"],
"compilerOptions": {
"module": "commonjs"
}
}
tsconfig.tests.browser.json
:
{
"extends": ["./configs/tests", "./tsconfig"],
"compilerOptions": {
"module": "amd"
}
}
@alexeagle @DanielRosenwasser Does this cover your usecases?
kitsonk, yahiko00, yortus, IgorMinar, agubler and 16 more
Metadata
Metadata
Assignees
Labels
CommittedThe team has roadmapped this issueThe team has roadmapped this issueSuggestionAn idea for TypeScriptAn idea for TypeScript
Type
Projects
Milestone
Relationships
Development
Issue actions
You canβt perform that action at this time.