DenoDDeno
Powered by
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
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
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.
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,944Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

How to get Deno's default compilerOptions value?
ahuigo.Aahuigo. / help
4y ago
Is there a way to use `tsconfig.json` `compilerOptions.types`?
Adam ScottAAdam Scott / help
9mo ago
Is tsconfig.json still needed with Deno?
Definitely Not A DolphinDDefinitely Not A Dolphin / help
3mo ago
Deno VSCode extension issues with tsconfig.json
BaguingiBBaguingi / help
15mo ago