mirror of
https://github.com/denoland/deno.git
synced 2024-11-26 16:09:27 -05:00
5 lines
185 B
TypeScript
5 lines
185 B
TypeScript
const data1 = await import("./data.json", { with: { type: "json" } });
|
|
const data2 = await import("./data.json", { assert: { type: "json" } });
|
|
|
|
console.log(data1);
|
|
console.log(data2);
|