DenoDDeno
Powered by
Adam ScottA
Denoβ€’9mo agoβ€’
1 reply
Adam Scott

Is there a way to use `tsconfig.json` `compilerOptions.types`?

I just saw that
/// <reference types="npm:@types/serviceworker" />
/// <reference types="npm:@types/serviceworker" />

works in my project, but is there somehow a way to set the type instead in the
tsconfig.json
tsconfig.json
file like normal Node/TypeScript projects?
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,944Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

What is the correct syntax to set the `compilerOptions.types` to use npm @types library
jzbgJjzbg / help
3y ago
ImportTypeScript API + get value of `compilerOptions` with default options from `tsconfig.json`?
wauterboiWwauterboi / help
2y ago
Is tsconfig.json still needed with Deno?
Definitely Not A DolphinDDefinitely Not A Dolphin / help
3mo ago
is there a way to make deno check produce json files?
dan.the.discloserDdan.the.discloser / help
4y ago