jzbg
jzbg
DDeno
Created by jzbg on 11/25/2023 in #help
What is the correct syntax to set the `compilerOptions.types` to use npm @types library
For example: As of now if I want my .ts files to have access to the npm:express packages @types/express I need to always reference in each file // @deno-types="npm:@types/express" I want to update the deno.json compilerOptions.types array to include for example npm:@types/express ... However, when I attempt to include globally, it does not get picked up in the .ts files. In summary, how can I avoid needing to reference the // @deno-types=... in each separate file. I just want to set it once in the deno config. Thanks
2 replies