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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I see that I can supply predefined environment enums in the emit options
compilerOptions.libarray (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.typeRootsaren'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