| 1 | { |
| 2 | "compilerOptions": { |
| 3 | "target": "ES2022", |
| 4 | // `DOM` is here for the WHATWG names the Workers runtime shares with the |
| 5 | // browser — Request, Response, Headers, ReadableStream, TextDecoder — which |
| 6 | // is also what Node gives the tests. Deliberately not |
| 7 | // `@cloudflare/workers-types`: the tests drive the handler as a plain |
| 8 | // `fetch(request, env)` under Node, and two competing Request declarations |
| 9 | // would make the suite typecheck against something it never runs. |
| 10 | "lib": ["ES2022", "DOM"], |
| 11 | "module": "ESNext", |
| 12 | "moduleResolution": "bundler", |
| 13 | "types": ["node"], |
| 14 | "strict": true, |
| 15 | "noUncheckedIndexedAccess": false, |
| 16 | "noEmit": true, |
| 17 | "skipLibCheck": true, |
| 18 | "isolatedModules": true, |
| 19 | "verbatimModuleSyntax": false, |
| 20 | "esModuleInterop": true, |
| 21 | "forceConsistentCasingInFileNames": true |
| 22 | }, |
| 23 | "include": ["src/**/*.ts", "test/**/*.ts", "vitest.config.ts"] |
| 24 | } |
| 25 |