diff --git a/graylog2-web-interface/src/views/types.ts b/graylog2-web-interface/src/views/types.ts index 02fa27cd37c8..93d0c93a2f1f 100644 --- a/graylog2-web-interface/src/views/types.ts +++ b/graylog2-web-interface/src/views/types.ts @@ -317,10 +317,10 @@ type DashboardAction = { useCondition?: () => boolean, } -export type EventAction = { +export type EventAction = { useCondition: (events: Array) => boolean, - modal?: React.ComponentType>, - component: React.ComponentType, + modal?: React.ComponentType>, + component: React.ComponentType>, key: string, isBulk?: boolean } @@ -337,9 +337,9 @@ type AssetInformation = { key: string, } -export type EventActionComponentProps = { +export type EventActionComponentProps = { events: Array, - modalRef: () => unknown, + modalRef: () => T, } type MessageActionComponentProps = { @@ -491,7 +491,7 @@ declare module 'graylog-web-plugin/plugin' { 'views.completers'?: Array; 'views.components.assetInformationActions'?: Array; 'views.components.dashboardActions'?: Array> - 'views.components.eventActions'?: Array; + 'views.components.eventActions'?: Array>; 'views.components.widgets.messageTable.previewOptions'?: Array; 'views.components.widgets.messageTable.messageRowOverride'?: Array>; 'views.components.widgets.messageDetails.contextProviders'?: Array>>;