mirror of
https://github.com/denoland/deno.git
synced 2024-12-23 23:59:59 -05:00
012f99bd9a
Closes: #4752
16 lines
355 B
TypeScript
16 lines
355 B
TypeScript
const { diagnostics, files } = await Deno.emit(
|
|
"/main.ts",
|
|
{
|
|
sources: {
|
|
"/main.ts":
|
|
`/// <reference lib="dom" />\n\ndocument.getElementById("foo");\nDeno.args;`,
|
|
},
|
|
compilerOptions: {
|
|
target: "es2018",
|
|
lib: ["es2018", "deno.ns"],
|
|
},
|
|
},
|
|
);
|
|
|
|
console.log(diagnostics);
|
|
console.log(Object.keys(files).sort());
|