mirror of
https://github.com/denoland/deno.git
synced 2024-11-01 09:24:20 -04:00
18 lines
398 B
TypeScript
18 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());
|