Closed as not planned
Description
If it's helpful, you might think of this like the
isolatedModules
compiler option, but for types.
In order to allow for the modules in a type-checked program's graph to use incompatible and exclusive ambient types, it is necessary to offer the ability to type-check modules in isolation. That way, when different modules use triple-slash references (or—even better—separate deno configs!), those types don't leak into other module code (causing type-checking conflicts and/or the potential for uncaught runtime errors).
This primarily addresses the use of Deno as a compiler (and/or bundler) of code which is then executed in another runtime environment (like a browser with puppeteer, or for evaluation by Node.js in a subprocess, etc.).
Refs:
- Types and execution context (evaluation functions): suggested patterns lucacasonato/deno-puppeteer#46
- disable certain global types for specific files, or specify type roots for specific files. microsoft/TypeScript#37053
- Support
deno.config
in a multi-root workspace vscode_deno#501 - [Feature Request] Support multiple tsconfigs in the same repository vscode_deno#488