mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 18:38:55 +00:00
Reorganize Intro section
This commit is contained in:
@@ -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.",
|
||||
}),
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user