mirror of
https://github.com/denoland/deno.git
synced 2024-11-29 16:30:56 -05:00
ef26a267ae
Closes: #12558 Fixes: #14344
17 lines
398 B
TypeScript
17 lines
398 B
TypeScript
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());
|