1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-23 07:44:48 -05:00
denoland-deno/cli/tests/testdata/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());