Provide deno check
as runtime API
#15478
Labels
suggestion
suggestions for new features (yet to be agreed)
deno check
as runtime API
#15478
Deno.emit
has come and gone, and plenty of suggestions can be found pointing toward usingesbuild
to transpile TypeScript source code at runtime, but there is now a lack of a runtime API for type-checking.Previously, with
Deno.emit
, type-related diagnostics were available for determining if transpiled source code had type-related problems. Now, there is no way to know if the transpiled source is unsound from a type system perspective.It would be very useful for Deno to provide runtime API access to its type-checking functionality and diagnostics. It's not possible to use
tsc
or tools in its ecosystem for this purpose (primarily because Deno's import specifier syntax is incompatible).I believe this should be provided directly from the runtime on the
Deno
namespace (instead of as an external module likehttps://github.com/denoland/deno_emit
) because the modified version of the compiler that is needed for this task is already so tightly-integrated. Deno saliently advertises TypeScript integration as one of its core features (home page, introduction in the manual, etc.). I find it unexpected for such a platform not to provide TypeScript runtime integration.Related:
deno fmt
anddeno lint
as runtime APIs #10731check typescript api
The text was updated successfully, but these errors were encountered: