cloudflare-typescript
cloudflare-typescript copied to clipboard
fix: add missing 'active' status to DatabaseExportResponse type
Description
Fixes #2669
The DatabaseExportResponse interface was missing the 'active' status option, causing TypeScript errors when users tried to check response.status == "active" during D1 database export polling.
Changes
- Added
'active'to the status union type insrc/resources/d1/database.ts - Before:
status?: 'complete' | 'error'; - After:
status?: 'complete' | 'error' | 'active';
Testing
- ✅ Created test case reproducing the original issue
- ✅ Verified TypeScript compilation passes with the fix
- ✅ No breaking changes to existing functionality
Issue Reference
This resolves the TypeScript error reported in #2669:
This pull request hasn't been updated in a while, and is being marked as stale. Thanks!