diff --git a/docs/guides/runtime/typescript.md b/docs/guides/runtime/typescript.md index bbf858b9ca5234..9d5aeca4d76eff 100644 --- a/docs/guides/runtime/typescript.md +++ b/docs/guides/runtime/typescript.md @@ -16,7 +16,7 @@ Below is the full set of recommended `compilerOptions` for a Bun project. With t { "compilerOptions": { // Enable latest features - "lib": ["ESNext"], + "lib": ["ESNext","DOM"], "target": "ESNext", "module": "ESNext", "moduleDetection": "force", diff --git a/src/cli/tsconfig-for-init.json b/src/cli/tsconfig-for-init.json index 0fef23a368018b..238655f2ce24cd 100644 --- a/src/cli/tsconfig-for-init.json +++ b/src/cli/tsconfig-for-init.json @@ -1,7 +1,7 @@ { "compilerOptions": { // Enable latest features - "lib": ["ESNext"], + "lib": ["ESNext", "DOM"], "target": "ESNext", "module": "ESNext", "moduleDetection": "force",