Skip to content

Configurable option for isolated type-checking of modules #13564

Closed as not planned
@jsejcksn

Description

@jsejcksn

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    clirelated to cli/ dirdeclinedthank you, but respectfully declinedsuggestionsuggestions for new features (yet to be agreed)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions