We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd64692 commit a11aed5Copy full SHA for a11aed5
1 file changed
README.md
@@ -16,7 +16,7 @@ Developers will then be able to import the bytes as follows:
16
17
```js
18
import bytes from "./photo.png" with { type: "bytes" };
19
-import("./photo.png", { with: { type: "bytes" } });
+const bytes = import("./photo.png", { with: { type: "bytes" } });
20
```
21
22
The bytes are returned as a `Uint8Array` backed by an [immutable arraybuffer](https://github.com/tc39/proposal-immutable-arraybuffer).
0 commit comments