1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-01 09:24:20 -04:00
denoland-deno/cli/tests/testdata/lib_dom_extras.ts

18 lines
398 B
TypeScript
Raw Normal View History

const { diagnostics, files } = await Deno.emit("/main.ts", {
compilerOptions: {
target: "esnext",
lib: ["esnext", "dom"],
},
sources: {
"/main.ts": `const as = new AbortSignal();
console.log(as.reason);
const up = new URLPattern("https://example.com/books/:id");
console.log(up);
`,
},
});
console.log(diagnostics);
console.log(Object.keys(files).sort());