diff options
Diffstat (limited to 'docs/quickstart.md')
-rw-r--r-- | docs/quickstart.md | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/docs/quickstart.md b/docs/quickstart.md index 9b46d4501..c71c3c50f 100644 --- a/docs/quickstart.md +++ b/docs/quickstart.md @@ -42,6 +42,25 @@ const server = Bun.serve({ console.log(`Listening on http://localhost:${server.port} ...`); ``` +<!-- +### TypeScript + +If you're using TypeScript, you may see a type error on the `Bun` global. To fix this, install `bun-types`. + +```sh +$ bun add -d bun-types +``` + +Then add the following line to your `compilerOptions` in `tsconfig.json`. + +```json-diff#tsconfig.json +{ + "compilerOptions": { ++ "types": ["bun-types"] + } +} +``` --> + Run the file from your shell. ```bash |