diff options
author | 2023-09-13 21:36:35 -0700 | |
---|---|---|
committer | 2023-09-13 21:36:35 -0700 | |
commit | fbafbd3394a2c1a1112df148fa2b151ee0955cc5 (patch) | |
tree | 10752e05139c6a0887e6b18e717493cf3fefc3b8 | |
parent | 66c040142609c42d7a90bdf4d8233306449713d4 (diff) | |
download | bun-fbafbd3394a2c1a1112df148fa2b151ee0955cc5.tar.gz bun-fbafbd3394a2c1a1112df148fa2b151ee0955cc5.tar.zst bun-fbafbd3394a2c1a1112df148fa2b151ee0955cc5.zip |
Reorganize Intro section
-rw-r--r-- | docs/nav.ts | 6 | ||||
-rw-r--r-- | docs/typescript.md | 2 |
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. |