diff --git a/x-pack/plugins/reporting/server/core.ts b/x-pack/plugins/reporting/server/core.ts index 97ee1178d046d..b5f0f8b977eb6 100644 --- a/x-pack/plugins/reporting/server/core.ts +++ b/x-pack/plugins/reporting/server/core.ts @@ -215,7 +215,7 @@ export class ReportingCore { */ private getExportTypes(): ExportType[] { const { csv, pdf, png } = this.config.export_types; - const exportTypes: any[] = []; // hack around type error: Argument of type 'CsvSearchSourceExportType|CsvV2ExportType|PdfV1ExportType|PdfExportType|PngExportType' is not assignable to parameter of type 'never' + const exportTypes: ExportType[] = []; if (csv.enabled) { // NOTE: CsvSearchSourceExportType should be deprecated and replaced with V2 in the UI: https://github.com/elastic/kibana/issues/151190