Try to fix formatting in rendered guides document (#13077)

This commit is contained in:
guest271314
2024-08-04 08:59:00 -07:00
committed by GitHub
parent fd84ace83b
commit ce1286efef

View File

@@ -39,4 +39,16 @@ data.author.name; // => "John Dough"
---
Bun also supports [Import Attributes](https://github.com/tc39/proposal-import-attributes/) and [JSON modules](https://github.com/tc39/proposal-json-modules) syntax.
```ts
import data from "./package.json" with { type: "json" };
data.name; // => "bun"
data.version; // => "1.0.0"
data.author.name; // => "John Dough"
```
---
See [Docs > Runtime > TypeScript](/docs/runtime/typescript) for more information on using TypeScript with Bun.