@@ -82,9 +82,9 @@ export function PublishReportTableSnapshot({ snapshot }: { snapshot: ReportTable
8282 return null ;
8383}
8484
85- export type ReportExportFormat = 'csv' | 'xlsx' ;
85+ export type ReportTableExportFormat = 'csv' | 'xlsx' ;
8686
87- const REPORT_EXPORT_FORMATS : readonly ReportExportFormat [ ] = [ 'csv' , 'xlsx' ] ;
87+ const REPORT_EXPORT_FORMATS : readonly ReportTableExportFormat [ ] = [ 'csv' , 'xlsx' ] ;
8888
8989/** The `exportOptions` shape the renderer reads (validated by `ReportSchema`). */
9090export interface ReportExportOptionsLike {
@@ -94,13 +94,13 @@ export interface ReportExportOptionsLike {
9494}
9595
9696/** The formats the control offers: absent → both; `[]` → none; order as declared. */
97- export function readReportExportFormats ( options : unknown ) : ReportExportFormat [ ] {
97+ export function readReportExportFormats ( options : unknown ) : ReportTableExportFormat [ ] {
9898 const formats = ( options as ReportExportOptionsLike | undefined ) ?. formats ;
9999 if ( ! Array . isArray ( formats ) ) return [ ...REPORT_EXPORT_FORMATS ] ;
100- const out : ReportExportFormat [ ] = [ ] ;
100+ const out : ReportTableExportFormat [ ] = [ ] ;
101101 for ( const f of formats ) {
102- if ( ( REPORT_EXPORT_FORMATS as readonly unknown [ ] ) . includes ( f ) && ! out . includes ( f as ReportExportFormat ) ) {
103- out . push ( f as ReportExportFormat ) ;
102+ if ( ( REPORT_EXPORT_FORMATS as readonly unknown [ ] ) . includes ( f ) && ! out . includes ( f as ReportTableExportFormat ) ) {
103+ out . push ( f as ReportTableExportFormat ) ;
104104 }
105105 }
106106 return out ;
@@ -191,7 +191,7 @@ export function ReportExportControl({ exportOptions, label, name, snapshot }: Re
191191 const reportLabel = pickLocalized ( label , language ) || name || '' ;
192192 const prefix = typeof options . fileNamePrefix === 'string' ? options . fileNamePrefix : undefined ;
193193
194- const run = async ( format : ReportExportFormat ) => {
194+ const run = async ( format : ReportTableExportFormat ) => {
195195 setBusy ( true ) ;
196196 setError ( null ) ;
197197 try {
0 commit comments