Skip to content

Conversation

@SharanRP
Copy link

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 in src/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:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DatabaseExportResponse status property is missing "active" option

1 participant