Replies: 1 comment 5 replies
-
Does something like this not work for you? Deno.emit("test.ts", {
compilerOptions: {
types: ["./example/env.d.ts"]
}
}); |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I see that I can supply predefined environment enums in the emit options
compilerOptions.lib
array (e.g.ES2017
/DOM.Iterable
, etc.), but I don't see a way to provide other environment types (e.g. paths to declaration files) because properties likecompilerOptions.typeRoots
aren't supported.If I want to compile for other [custom] runtime environments, do I really have to import the types into every source file or is there a configuration alternative?
Beta Was this translation helpful? Give feedback.
All reactions