aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/nav.ts6
-rw-r--r--docs/typescript.md2
2 files changed, 4 insertions, 4 deletions
diff --git a/docs/nav.ts b/docs/nav.ts
index 8a4c30dff..08f6cee44 100644
--- a/docs/nav.ts
+++ b/docs/nav.ts
@@ -32,12 +32,12 @@ export default {
page("installation", "Installation", {
description: "Install Bun with npm, Homebrew, Docker, or the official install script.",
}),
- page("typescript", "TypeScript", {
- description: "Install and configure type declarations for Bun's APIs",
- }),
page("quickstart", "Quickstart", {
description: "Get started with Bun by building and running a simple HTTP server in 6 lines of TypeScript.",
}),
+ page("typescript", "TypeScript", {
+ description: "Install and configure type declarations for Bun's APIs",
+ }),
page("templates", "Templates", {
description: "Hit the ground running with one of Bun's official templates, or download a template from GitHub.",
}),
diff --git a/docs/typescript.md b/docs/typescript.md
index d4142eccf..b764ee50e 100644
--- a/docs/typescript.md
+++ b/docs/typescript.md
@@ -61,7 +61,7 @@ If you run `bun init` in a new directory, this `tsconfig.json` will be generated
$ bun init
```
-### DOM types
+## DOM types
Unfortunately, setting a value for `"types"` means that TypeScript will ignore other global type definitions, including `lib: ["dom"]`. If you need to add DOM types into your project, add the following [triple-slash directives](https://www.typescriptlang.org/docs/handbook/triple-slash-directives.html) at the top of any TypeScript file in your project.