cloudflare-typescript icon indicating copy to clipboard operation
cloudflare-typescript copied to clipboard

fix: add missing 'active' status to DatabaseExportResponse type

Open SharanRP opened this issue 3 months ago • 1 comments

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:

SharanRP avatar Sep 25 '25 05:09 SharanRP

This pull request hasn't been updated in a while, and is being marked as stale. Thanks!

github-actions[bot] avatar Nov 24 '25 16:11 github-actions[bot]