wauterboiW
Denoβ€’2y agoβ€’
2 replies
wauterboi

ImportTypeScript API + get value of `compilerOptions` with default options from `tsconfig.json`?

Hello, I'm trying to figure out the proper way to do a few things:

1. What's the correct way to import the TypeScript API in Deno? At the moment, I'm importing from npm because I can't find any official TypeScript module in Deno.
2. What's the best way to read the compilerOptions tsconfig.json such that anything not set gets its default value? On a cursory glance, it would see like I can easily import the JSON, and I would feed it to convertCompilerOptionsFromJson, but I have no idea how to import, which is also why I'm asking 1.

Even if this is an XY problem, I think that learning about the import maps and Deno ecosystem is worthwhile.
Was this page helpful?