1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-28 01:59:06 -05:00
denoland-deno/cli/tests/lib_ref.ts

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());