https://github.com/cherry/workers-node-types-issue-repro
https://github.com/cherry/workers-node-types-issue-repro
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/cherry/workers-node-types-issue-repro
- Owner: Cherry
- Created: 2023-10-10T20:26:19.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-18T22:26:10.000Z (about 2 years ago)
- Last Synced: 2025-01-30T03:28:00.082Z (over 1 year ago)
- Language: TypeScript
- Size: 88.9 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Reproduction for issue: https://github.com/cloudflare/workerd/issues/1298
Steps to reproduce:
1. Clone and `npm ci`
2. Uncomment line 5 (`import { neon } from '@neondatabase/serverless'`) in `src/index.ts`
3. Watch as the type errors now appear, or run `npx tsc --noEmit` to see the errors
When you don't load `@types/node`, no errors appear. When you do, the errors appear since now `Request`/`Response`/`fetch` global types have been changed.